Skip to content

Commit 7c5e3f2

Browse files
committed
Prefix abs with std::
1 parent f09adaa commit 7c5e3f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nnue/evaluate_nnue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static bool write_parameters(std::ostream& stream, NetSize netSize) {
178178
void hint_common_parent_position(const Position& pos) {
179179

180180
int simpleEval = simple_eval(pos, pos.side_to_move());
181-
if (abs(simpleEval) > 1050)
181+
if (std::abs(simpleEval) > 1050)
182182
featureTransformerSmall->hint_common_access(pos);
183183
else
184184
featureTransformerBig->hint_common_access(pos);

0 commit comments

Comments
 (0)