mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08: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:
@@ -75,7 +75,7 @@ const TTEntry* TranspositionTable::probe(const Key key) const {
|
|||||||
for (unsigned i = 0; i < TTClusterSize; ++i)
|
for (unsigned i = 0; i < TTClusterSize; ++i)
|
||||||
if (tte[i].key16 == key16)
|
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];
|
return &tte[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user