mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
Fix assert: implicit cast to boolean doesn't work when bit being
tested is outside the low-order byte.
This commit is contained in:
parent
62dd1091ca
commit
b99f993760
1 changed files with 1 additions and 1 deletions
|
@ -1175,7 +1175,7 @@ commitTurn( ModelCtxt* model, XP_S16 turn, TrayTileSet* newTiles,
|
||||||
row = pt->row;
|
row = pt->row;
|
||||||
tile = getModelTileRaw( model, col, row );
|
tile = getModelTileRaw( model, col, row );
|
||||||
|
|
||||||
XP_ASSERT( tile & TILE_PENDING_BIT );
|
XP_ASSERT( (tile & TILE_PENDING_BIT) != 0 );
|
||||||
|
|
||||||
val = tile & TILE_VALUE_MASK;
|
val = tile & TILE_VALUE_MASK;
|
||||||
if ( val > 1 ) { /* somebody else is using this square too! */
|
if ( val > 1 ) { /* somebody else is using this square too! */
|
||||||
|
|
Loading…
Add table
Reference in a new issue