]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Fix a warning with MSVC Premium 2013
[stockfish] / src / types.h
index 8cdb5227c0055efa4df754be4b30d0d0e0d2fa86..f1cfa140bcc7babd272e9febc89a85635140e366 100644 (file)
@@ -136,7 +136,7 @@ enum CastlingSide {
   KING_SIDE, QUEEN_SIDE, CASTLING_SIDE_NB = 2
 };
 
-enum CastlingRight {  // Defined as in PolyGlot book hash key
+enum CastlingRight {
   NO_CASTLING,
   WHITE_OO,
   WHITE_OOO   = WHITE_OO << 1,
@@ -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);
 }
@@ -337,6 +337,8 @@ inline Score operator/(Score s, int i) {
   return make_score(mg_value(s) / i, eg_value(s) / i);
 }
 
+CACHE_LINE_ALIGNMENT
+
 extern Value PieceValue[PHASE_NB][PIECE_NB];
 
 struct ExtMove {