1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

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.
This commit is contained in:
Marco Costalba 2014-11-16 16:25:20 +01:00
parent d65c9a3262
commit 1a939cd8c8

View file

@ -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];
}