Removing redundant parentheses

closes https://github.com/official-stockfish/Stockfish/pull/6490

No functional change
This commit is contained in:
FauziAkram
2025-12-28 14:50:36 +01:00
committed by Disservin
parent cd3a837324
commit 9d69577e19
+2 -2
View File
@@ -42,8 +42,8 @@ namespace Stockfish {
// an approximation of the material advantage on the board in terms of pawns. // an approximation of the material advantage on the board in terms of pawns.
int Eval::simple_eval(const Position& pos) { int Eval::simple_eval(const Position& pos) {
Color c = pos.side_to_move(); Color c = pos.side_to_move();
return PawnValue * (pos.count<PAWN>(c) - pos.count<PAWN>(~c)) return PawnValue * (pos.count<PAWN>(c) - pos.count<PAWN>(~c)) + pos.non_pawn_material(c)
+ (pos.non_pawn_material(c) - pos.non_pawn_material(~c)); - pos.non_pawn_material(~c);
} }
bool Eval::use_smallnet(const Position& pos) { return std::abs(simple_eval(pos)) > 962; } bool Eval::use_smallnet(const Position& pos) { return std::abs(simple_eval(pos)) > 962; }