X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=19785b64ab027606e138a44da71c16f8d12442b7;hp=03344db772b8b9b69074b5748be52a0f4704ffd3;hb=80f5ca88f6eaead0c5460c4bc13c1c7d9477c2be;hpb=14dbeb22dd04f0954322a58c26833506fb4532a9 diff --git a/src/movepick.cpp b/src/movepick.cpp index 03344db7..19785b64 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2009 Marco Costalba + Copyright (C) 2008-2010 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -111,7 +111,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, searchTT = ttMoves[0].move = MOVE_NONE; } - phasePtr += !searchTT - 1; + phasePtr += int(!searchTT) - 1; go_next_phase(); }