]> git.sesse.net Git - stockfish/commitdiff
Ensure move_importance() is non-zero
authorH. Felix Wittmann <hfwittmann@gmail.com>
Thu, 2 Jan 2014 12:00:48 +0000 (13:00 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 2 Jan 2014 12:01:24 +0000 (13:01 +0100)
In case ply is very high, function will round
to zero (although mathematically it is always
bigger than zero). On my system this happens at
movenumber 6661.

Although 6661 moves in a game is, of course,
probably impossible, for safety and to be locally
consistent makes sense to ensure returned value
is positive.

Non functional change.


No differences found