mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Fix a shift overflow warning
Visual Studio 11 is worried that shift result could overflow an integer, this is impossible becuase max value of the shift is 4, but compiler cannot know it. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
34178205fc
commit
c2a68708ef
1 changed files with 1 additions and 1 deletions
|
@ -1520,7 +1520,7 @@ void Position::init() {
|
||||||
Bitboard b = cr;
|
Bitboard b = cr;
|
||||||
while (b)
|
while (b)
|
||||||
{
|
{
|
||||||
Key k = zobCastle[1 << pop_1st_bit(&b)];
|
Key k = zobCastle[1ULL << pop_1st_bit(&b)];
|
||||||
zobCastle[cr] ^= k ? k : rk.rand<Key>();
|
zobCastle[cr] ^= k ? k : rk.rand<Key>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue