From: Marco Costalba Date: Sun, 16 Nov 2014 15:25:20 +0000 (+0100) Subject: Fix a warning on Intel C++ X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=1a939cd8c8679e74e9a27ae72d9963247d647890;hp=d65c9a326294a1f7bedf8f9a386b155f10055b42;ds=inline Fix a warning on Intel C++ warning #2259: non-pointer conversion from "int" to "uint8_t={unsigned char}" may lose significant bits No functional change. --- diff --git a/src/tt.cpp b/src/tt.cpp index 23f6277e..117b6002 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -75,7 +75,7 @@ const TTEntry* TranspositionTable::probe(const Key key) const { for (unsigned i = 0; i < TTClusterSize; ++i) if (tte[i].key16 == key16) { - tte[i].genBound8 = generation | (uint8_t)tte[i].bound(); // Refresh + tte[i].genBound8 = uint8_t(generation | tte[i].bound()); // Refresh return &tte[i]; }