projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1c38b62
)
Fix compiler warning
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Sat, 19 Jun 2021 06:09:33 +0000 (08:09 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Sat, 19 Jun 2021 06:09:33 +0000 (08:09 +0200)
src/bitboard.h
patch
|
blob
|
history
diff --git
a/src/bitboard.h
b/src/bitboard.h
index
a9895ff
..
595367a
100644
(file)
--- a/
src/bitboard.h
+++ b/
src/bitboard.h
@@
-131,10
+131,12
@@
struct Magic {
if (HasPext)
return unsigned(pext(occupied, mask));
-#ifndef LARGEBOARDS
+#ifdef LARGEBOARDS
+ return unsigned(((occupied & mask) * magic) >> shift);
+#else
if (Is64Bit)
-#endif
return unsigned(((occupied & mask) * magic) >> shift);
+#endif
unsigned lo = unsigned(occupied) & unsigned(mask);
unsigned hi = unsigned(occupied >> 32) & unsigned(mask >> 32);