From: Marco Costalba Date: Wed, 11 Nov 2009 19:32:58 +0000 (+0100) Subject: Small sort_moves() deobfuscation X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8e96149c8cc6c3359484b2874b022932f1499927;p=fairystockfish.git Small sort_moves() deobfuscation Write the for loop in a more idiomatic way, no assembly change and of course no functional change. Signed-off-by: Marco Costalba --- diff --git a/src/move.h b/src/move.h index 4e86a68..d70bb81 100644 --- a/src/move.h +++ b/src/move.h @@ -73,7 +73,7 @@ inline void sort_moves(T* firstMove, T* lastMove) T *cur, *p, *d; if (firstMove != lastMove) - for (cur = firstMove; ++cur != lastMove; ) + for (cur = firstMove + 1; cur != lastMove; cur++) { p = d = cur; value = *p--;