Fix assert with very high score position
authorMarco Costalba <mcostalba@gmail.com>
Mon, 28 Dec 2015 12:14:49 +0000 (13:14 +0100)
committerJoona Kiiski <joona@zoox.com>
Wed, 30 Dec 2015 11:16:48 +0000 (11:16 +0000)
commit3e4fed3a91752da394f7c912f4e5e29dc39391f6
treed90211755fc41920c0ef551fd6f3340e9ba03fd0
parenta5c76d69c346d620b6f7a300d4a33cc5867f4d64
Fix assert with very high score position

In case of a very high material score, we can
overflow VALUE_INFINITE.

This patch fixes an assert with:

position fen 7k/QQQQR3/2B5/4KN1Q/3QQ3/8/8/4R3 b - - 0 1
go depth 1

No functional change.

Resolves #546
src/endgame.cpp