X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmove.h;h=765328713a7201d4a49770752b5fe86b805d8693;hp=0cf6ac6301b4baa350788e6352b57b7098a8d3c5;hb=d0fdc202315a211124f65965f88a3a0ed5b91953;hpb=c7866a4215c31d7d0af8e8550fbf8c13f6ea1d1a diff --git a/src/move.h b/src/move.h index 0cf6ac63..76532871 100644 --- a/src/move.h +++ b/src/move.h @@ -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 @@ -101,11 +101,11 @@ inline void sort_moves(T* firstMove, T* lastMove, T** lastPositive) // Split positives vs non-positives do { - while ((++p)->score > 0); + while ((++p)->score > 0) {} if (p != d) { - while (--d != p && d->score <= 0); + while (--d != p && d->score <= 0) {} tmp = *p; *p = *d;