Skip to content

Commit

Permalink
Fix a warning with Intel compiler
Browse files Browse the repository at this point in the history
warning #2259: non-pointer conversion from
"int" to "int16_t={short}" may lose significant
bits.

No functional change.
  • Loading branch information
mcostalba committed May 24, 2014
1 parent 585655b commit 495a0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 495a0fa

Please sign in to comment.