]> git.sesse.net Git - stockfish/commit
Ensure that rootDepth < DEPTH_MAX
authorlucasart <lucas.braesch@gmail.com>
Sat, 7 Nov 2015 04:19:13 +0000 (12:19 +0800)
committerJoona Kiiski <joona@zoox.com>
Tue, 10 Nov 2015 21:41:42 +0000 (21:41 +0000)
commite6eeb17aa6a79ab49b6c70fb783f54318d63add7
tree76512ed6fd8cc9f61c104a0a6071ee123499101d
parent9c9205860c5ab0e4f3180298e3f7082be259772c
Ensure that rootDepth < DEPTH_MAX

Indeed, if we use a depth >= DEPTH_MAX, we start having negative depth in the
TT (due to int8_t cast).

No functional change in single thread mode

Resolves #490
src/search.cpp