Skip to content

Commit

Permalink
Silence some warnings with MSVC 2013
Browse files Browse the repository at this point in the history
No functional change.
  • Loading branch information
mcostalba committed Aug 27, 2016
1 parent 805afcb commit 0b944c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/movegen.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tt.h
Expand Up @@ -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) {
Expand Down

0 comments on commit 0b944c7

Please sign in to comment.