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:
parent
a732059324
commit
e2c0896a2b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user