]> git.sesse.net Git - stockfish/commit
Use DEPTH_MAX instead of MAX_PLY
authorMarco Costalba <mcostalba@gmail.com>
Sat, 15 Nov 2014 04:36:49 +0000 (05:36 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 15 Nov 2014 04:36:49 +0000 (05:36 +0100)
commit4840643fedbfc33d118cdc13c8435b062e3da99b
tree97a2cd6cdb25f1c80ec6586f29c4bcb0633fb6c6
parent4739037f967ac3c818907e89cc88c7b97021d027
Use DEPTH_MAX instead of MAX_PLY

When comparing to a Depth it is more
consistent to use DEPTH_MAX instead
of a int.

This is a subtle difference because we use
ply and depth almost interchangably in SF,
but they are different. FOr counting plies
makes ense to continue using ints, while
for Depth we have our specific enum.

This cleanly fixes a new Clang 3.5 warning:

No functional change.
src/search.cpp
src/types.h