1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00: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:
Marco Costalba 2014-05-25 00:21:46 +02:00
parent 585655b16e
commit 495a0fa699

View file

@ -274,7 +274,7 @@ typedef union {
inline Score make_score(int mg, int eg) { inline Score make_score(int mg, int eg) {
ScoreView v; 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; v.half.eg = (int16_t)eg;
return Score(v.full); return Score(v.full);
} }