mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Silence some warnings with MSVC 2013
No functional change.
This commit is contained in:
parent
805afcbf3d
commit
0b944c7186
2 changed files with 3 additions and 1 deletions
|
@ -82,6 +82,8 @@ namespace {
|
|||
// that's not already included in the queen promotion.
|
||||
if (Type == QUIET_CHECKS && (StepAttacksBB[W_KNIGHT][to] & ksq))
|
||||
*moveList++ = make<PROMOTION>(to - Delta, to, KNIGHT);
|
||||
else
|
||||
(void)ksq; // Silence a warning under MSVC
|
||||
|
||||
return moveList;
|
||||
}
|
||||
|
|
2
src/tt.h
2
src/tt.h
|
@ -39,7 +39,7 @@ struct TTEntry {
|
|||
Move move() const { return (Move )move16; }
|
||||
Value value() const { return (Value)value16; }
|
||||
Value eval() const { return (Value)eval16; }
|
||||
Depth depth() const { return (Depth)(depth8 * ONE_PLY); }
|
||||
Depth depth() const { return (Depth)(depth8 * int(ONE_PLY)); }
|
||||
Bound bound() const { return (Bound)(genBound8 & 0x3); }
|
||||
|
||||
void save(Key k, Value v, Bound b, Depth d, Move m, Value ev, uint8_t g) {
|
||||
|
|
Loading…
Add table
Reference in a new issue