Sudoku: 64 bit fix

Pointed by clang.

Change-Id: I996454dcee8484716946d08d3318daf8d815b7cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2402
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
X512 2020-03-23 09:40:43 +09:00 committed by Adrien Destugues
parent a732059324
commit e2c0896a2b

View File

@ -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))