]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Introduce and use SCORE_ZERO
[stockfish] / src / position.cpp
index 021113ed7ded96ad2e99c243e356b2ce271cc6ae..11684d763124ed1872f7b8746123528321e846c8 100644 (file)
@@ -1658,7 +1658,7 @@ Key Position::compute_material_key() const {
 /// updated by do_move and undo_move when the program is running in debug mode.
 Score Position::compute_value() const {
 
-  Score result = make_score(0, 0);
+  Score result = SCORE_ZERO;
   Bitboard b;
   Square s;
 
@@ -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++)
   {