From 8e96149c8cc6c3359484b2874b022932f1499927 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 11 Nov 2009 20:32:58 +0100 Subject: [PATCH 1/1] 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 --- src/move.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/move.h b/src/move.h index 4e86a689..d70bb81e 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--; -- 2.39.2