mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Fix a warning with Intel compiler
warning #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits. No functional change.
This commit is contained in:
@@ -274,7 +274,7 @@ typedef union {
|
||||
|
||||
inline Score make_score(int mg, int eg) {
|
||||
ScoreView v;
|
||||
v.half.mg = (int16_t)mg - (uint16_t(eg) >> 15);
|
||||
v.half.mg = (int16_t)(mg - (uint16_t(eg) >> 15));
|
||||
v.half.eg = (int16_t)eg;
|
||||
return Score(v.full);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user