fix test: unsigned can't drop below 0

This commit is contained in:
Eric House 2012-05-02 20:42:45 -07:00
parent 26913c5a37
commit 652fe6dd64

View file

@ -218,7 +218,7 @@ pool_containsTiles( const PoolContext* pool, const TrayTileSet* tiles )
/* In case we have duplicates, make count of each type */
for ( ii = 0; allThere && ii < tiles->nTiles; ++ii ) {
allThere = 0 <= --counts[tiles->tiles[ii]];
allThere = 0 < counts[tiles->tiles[ii]]--;
}
return allThere;