]> git.sesse.net Git - stockfish/commitdiff
Avoid a tricky line in shelter_storm()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 23 Feb 2013 18:27:32 +0000 (19:27 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 23 Feb 2013 18:27:32 +0000 (19:27 +0100)
kf = (kf == FILE_A) ? kf++ : ....

is tricky becuase kf is updated twice and it happens
to do the right thing just by accident.

Rewrite in a better way.

Spotted by pdimov

No functional change.


No differences found