From e2c0896a2b93d31ec07c24f984386cf47284a6d2 Mon Sep 17 00:00:00 2001 From: X512 Date: Mon, 23 Mar 2020 09:40:43 +0900 Subject: [PATCH] Sudoku: 64 bit fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pointed by clang. Change-Id: I996454dcee8484716946d08d3318daf8d815b7cf Reviewed-on: https://review.haiku-os.org/c/haiku/+/2402 Reviewed-by: Jérôme Duval --- src/apps/sudoku/SudokuView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/sudoku/SudokuView.cpp b/src/apps/sudoku/SudokuView.cpp index d2a1324abd..fc65be471d 100644 --- a/src/apps/sudoku/SudokuView.cpp +++ b/src/apps/sudoku/SudokuView.cpp @@ -746,7 +746,7 @@ SudokuView::KeyDown(const char *bytes, int32 /*numBytes*/) break; } - if (!fShowKeyboardFocus && fShowHintX != ~0UL) { + if (!fShowKeyboardFocus && fShowHintX != UINT32_MAX) { // always start at last mouse position, if any fKeyboardX = fShowHintX; fKeyboardY = fShowHintY; @@ -1145,7 +1145,7 @@ SudokuView::_SetValue(uint32 x, uint32 y, uint32 value) fLastField = x + y * fField->Size(); } - if (value != fValueHintValue && fValueHintValue != ~0UL) + if (value != fValueHintValue && fValueHintValue != UINT32_MAX) _SetValueHintValue(value); if (wasCompleted != fField->IsValueCompleted(value))