Fix an assert when we stop the search
authorMarco Costalba <mcostalba@gmail.com>
Wed, 24 Oct 2012 22:07:16 +0000 (00:07 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 24 Oct 2012 22:07:59 +0000 (00:07 +0200)
commitc1f4000426dd799cfac97298c539e618909c057f
tree38fbdeab040f7ce97f7fb7e0bad71ef38483b062
parent22715259a04497743afe7e33f5cf1e3b13bb097e
Fix an assert when we stop the search

When signal 'stop' is raised we return bestValue
that could be still set at -VALUE_INFINITE and
this triggers an assert. Fix it by returning
a value we know for sure is not +-VALUE_INFINITE.

Reported by 平岡拓也 Hiraoka.

No functional change.
src/search.cpp