From 1a939cd8c8679e74e9a27ae72d9963247d647890 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 16 Nov 2014 16:25:20 +0100 Subject: [PATCH] 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. --- src/tt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- 2.39.2