From b99f993760571360427e70adf629aa1b03061b26 Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 22 Aug 2006 04:20:40 +0000 Subject: [PATCH] Fix assert: implicit cast to boolean doesn't work when bit being tested is outside the low-order byte. --- common/model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/model.c b/common/model.c index cb42f4f38..87447a62b 100644 --- a/common/model.c +++ b/common/model.c @@ -1175,7 +1175,7 @@ commitTurn( ModelCtxt* model, XP_S16 turn, TrayTileSet* newTiles, row = pt->row; tile = getModelTileRaw( model, col, row ); - XP_ASSERT( tile & TILE_PENDING_BIT ); + XP_ASSERT( (tile & TILE_PENDING_BIT) != 0 ); val = tile & TILE_VALUE_MASK; if ( val > 1 ) { /* somebody else is using this square too! */