mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Fix a silly warning with Intel compiler
Intel compiler cries for an explicit cast warning #2259: non-pointer conversion from "double" to "int" may lose significant bits No functional change.
This commit is contained in:
parent
62f531254e
commit
c150f07291
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ namespace {
|
||||||
double ratio1 = (TMaxRatio * moveImportance) / (TMaxRatio * moveImportance + otherMovesImportance);
|
double ratio1 = (TMaxRatio * moveImportance) / (TMaxRatio * moveImportance + otherMovesImportance);
|
||||||
double ratio2 = (moveImportance + TStealRatio * otherMovesImportance) / (moveImportance + otherMovesImportance);
|
double ratio2 = (moveImportance + TStealRatio * otherMovesImportance) / (moveImportance + otherMovesImportance);
|
||||||
|
|
||||||
return myTime * std::min(ratio1, ratio2);
|
return int(myTime * std::min(ratio1, ratio2)); // Intel C++ asks an explicit cast
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue