]> git.sesse.net Git - stockfish/commit
Redefine MoveStack comparison as the natural one
authorMarco Costalba <mcostalba@gmail.com>
Tue, 28 Dec 2010 10:45:57 +0000 (11:45 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 28 Dec 2010 12:06:53 +0000 (13:06 +0100)
commit6235904898c67e0609ba06dc9f92e1f7325dd176
tree7499dc0198618d27a761f92560d46118e6e63fbf
parent5b0849431221b09499b9f55c901da249ffdcd566
Redefine MoveStack comparison as the natural one

Define symbol '<' to mean 'minor of', as it should be. Its meaning
was reversed to be used with std::sort() that sorts in ascending order
while we want a descending order.

But now that we use our own sorting code we don't need this
trick anymore.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/move.h