mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Fix compile on HP-UX 11's HP's C++
On that platform non-bracketed casting are not supported. Reported by Richard Lloyd. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user