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:
parent
585655b16e
commit
495a0fa699
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue