mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
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:
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user