Fix bug where sign extention on 16-bit processors caused too many bits

set in crosschecks.
This commit is contained in:
ehouse 2006-11-10 08:08:59 +00:00
parent b171900dfb
commit 1838640823

View file

@ -691,7 +691,7 @@ figureCrosschecks( EngineCtxt* engine, XP_U16 x, XP_U16 y, XP_U16* scoreP,
if ( lookup( dict, in_edge, tiles, 0, tilesAfter ) ) {
XP_ASSERT( (tile >> 5)
< (sizeof(check->bits)/sizeof(check->bits[0])) );
check->bits[tile>>5] |= (1 << (tile & 0x1F));
check->bits[tile>>5] |= (1L << (tile & 0x1F));
}
if ( IS_LAST_EDGE(dict,candidateEdge ) ) {