X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=778e5e81bf86dd37ad5725823967ea9ef87b4f0e;hp=ee10b3f0d9e28bbedd0e892b13cccfb5c8a58538;hb=078354060ecb3f248cc1d719834073d46194d9d3;hpb=5973e0985425c90c72b98d75f3ccbd1c1bb3d446 diff --git a/src/tt.h b/src/tt.h index ee10b3f0..778e5e81 100644 --- a/src/tt.h +++ b/src/tt.h @@ -59,10 +59,10 @@ public: key32 = k; data = (m & 0x1FFFF) | (t << 21) | (g << 23); - value16 = int16_t(v); - depth16 = int16_t(d); - staticValue = int16_t(statV); - staticValueMargin = int16_t(kd); + value16 = (int16_t)v; + depth16 = (int16_t)d; + staticValue = (int16_t)statV; + staticValueMargin = (int16_t)kd; } void set_generation(int g) { data = move() | (type() << 21) | (g << 23); } @@ -132,7 +132,7 @@ extern TranspositionTable TT; inline TTEntry* TranspositionTable::first_entry(const Key posKey) const { - return entries[uint32_t(posKey) & (size - 1)].data; + return entries[((uint32_t)posKey) & (size - 1)].data; }