mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Use pre-increment also for native types
Now that we use pre-increment on enums, it make sense, for code style uniformity, to swith to pre-increment also for native types, although there is no speed difference. No functional change.
This commit is contained in:
@@ -231,7 +231,7 @@ void MovePicker::generate_next() {
|
||||
killers[2].move = killers[3].move = MOVE_NONE;
|
||||
|
||||
// Be sure countermoves are different from killers
|
||||
for (int i = 0; i < 2; i++)
|
||||
for (int i = 0; i < 2; ++i)
|
||||
if (countermoves[i] != cur->move && countermoves[i] != (cur+1)->move)
|
||||
(end++)->move = countermoves[i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user