X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftypes.h;h=9910f1032f071c47f9cbc61d108a52fd3f5c0e04;hb=495a0fa699fb3f8ed36fe343fbd910479df4e2f1;hp=8cdb5227c0055efa4df754be4b30d0d0e0d2fa86;hpb=585655b16eb88579ac9af001fb5494b51134b1f7;p=stockfish diff --git a/src/types.h b/src/types.h index 8cdb5227..9910f103 100644 --- a/src/types.h +++ b/src/types.h @@ -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); }