]> git.sesse.net Git - stockfish/commitdiff
Fix 'generation' type to uint8_t
authorMarco Costalba <mcostalba@gmail.com>
Mon, 22 Nov 2010 17:40:36 +0000 (18:40 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 28 Nov 2010 16:01:01 +0000 (17:01 +0100)
When we store this value in TT we cut this to 9 bits,
so we need a smaller variable otherwise comparisons
like:

   replace->generation() == generation

Are always false if generation is bigger then the maximum
TT storable value.

This fixes a very nasty and difficult to spot bug (2 weeks for
regression hunting).

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found