From 495a0fa699fb3f8ed36fe343fbd910479df4e2f1 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 25 May 2014 00:21:46 +0200 Subject: [PATCH] Fix a warning with Intel compiler warning #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits. No functional change. --- src/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.h b/src/types.h index 8cdb5227c00..9910f1032f0 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); }