Fix compile on HP-UX 11's HP's C++
[stockfish] / src / bitboard.cpp
index e4e409583bcd4b71ebc0bc853746a7c6b0062f1c..57b24e2ef61b88ce5a4785b368df05739ffbbd44 100644 (file)
@@ -203,7 +203,7 @@ void bitboards_init() {
           Bitboard b = 1ULL << i;
           b ^= b - 1;
           b ^= b >> 32;
-          BSFTable[uint32_t(b * 0x783A9B23) >> 26] = i;
+          BSFTable[(uint32_t)(b * 0x783A9B23) >> 26] = i;
       }
       else
           BSFTable[((1ULL << i) * 0x218A392CD3D5DBFULL) >> 58] = i;