mirror of
https://github.com/sockspls/badfish
synced 2025-07-13 04:29:15 +00: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:
parent
3c085775d7
commit
8e96149c8c
1 changed files with 1 additions and 1 deletions
|
@ -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--;
|
||||
|
|
Loading…
Add table
Reference in a new issue