]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Introduce enum VALUE_ZERO instead of Value(0)
[stockfish] / src / position.cpp
index 021113ed7ded96ad2e99c243e356b2ce271cc6ae..058fab66b13940b2db943aef8548c46b63d1e936 100644 (file)
@@ -1686,7 +1686,7 @@ Score Position::compute_value() const {
 
 Value Position::compute_non_pawn_material(Color c) const {
 
-  Value result = Value(0);
+  Value result = VALUE_ZERO;
 
   for (PieceType pt = KNIGHT; pt <= QUEEN; pt++)
   {