]> git.sesse.net Git - stockfish/blobdiff - src/move.h
Small sort_moves() deobfuscation
[stockfish] / src / move.h
index 4e86a68908f6e2a68bb31254935426e3e3e4327f..d70bb81e77b1e4417633994175c896b94e243f11 100644 (file)
@@ -73,7 +73,7 @@ inline void sort_moves(T* firstMove, T* lastMove)
     T *cur, *p, *d;
 
     if (firstMove != 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--;
         {
             p = d = cur;
             value = *p--;