mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +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;
|
T *cur, *p, *d;
|
||||||
|
|
||||||
if (firstMove != lastMove)
|
if (firstMove != lastMove)
|
||||||
for (cur = firstMove; ++cur != lastMove; )
|
for (cur = firstMove + 1; cur != lastMove; cur++)
|
||||||
{
|
{
|
||||||
p = d = cur;
|
p = d = cur;
|
||||||
value = *p--;
|
value = *p--;
|
||||||
|
|||||||
Reference in New Issue
Block a user