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 <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-11-11 20:32:58 +01:00
parent 3c085775d7
commit 8e96149c8c

View File

@@ -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--;