Skip to content

Commit c150f07

Browse files
committed
Fix a silly warning with Intel compiler
Intel compiler cries for an explicit cast warning official-stockfish#2259: non-pointer conversion from "double" to "int" may lose significant bits No functional change.
1 parent 62f5312 commit c150f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/timeman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace {
6363
double ratio1 = (TMaxRatio * moveImportance) / (TMaxRatio * moveImportance + otherMovesImportance);
6464
double ratio2 = (moveImportance + TStealRatio * otherMovesImportance) / (moveImportance + otherMovesImportance);
6565

66-
return myTime * std::min(ratio1, ratio2);
66+
return int(myTime * std::min(ratio1, ratio2)); // Intel C++ asks an explicit cast
6767
}
6868

6969
} // namespace

0 commit comments

Comments
 (0)