projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
585655b
)
Fix a warning with Intel compiler
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 24 May 2014 22:21:46 +0000 (
00:21
+0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 24 May 2014 22:21:46 +0000 (
00:21
+0200)
warning #2259: non-pointer conversion from
"int" to "int16_t={short}" may lose significant
bits.
No functional change.
src/types.h
patch
|
blob
|
history
diff --git
a/src/types.h
b/src/types.h
index
8cdb522
..
9910f10
100644
(file)
--- 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);
}