]> git.sesse.net Git - stockfish/commit
Fix two compile errors in new endgame code
authorMarco Costalba <mcostalba@gmail.com>
Fri, 17 Jul 2009 17:16:20 +0000 (19:16 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 17 Jul 2009 18:29:25 +0000 (19:29 +0100)
commit20e87389019187dd7586d3ffb12b632d5ec5d048
tree8060c9a9b32dfdaf4433bac312d6ad45f7235cbf
parentb3b1d3aaa7e0fa3cd28f8d9d2d5b1dd562b914c3
Fix two compile errors in new endgame code

Code that compiles cleanly under MSVC triggers one
compile error (correct) under Intel C++ and two(!)
under gcc.

The first is the same complained by Intel, but the second
is an interesting corner case of C++ standard (there are many)
that is correctly spotted only by gcc.

Both MSVC and Intel pass this silently, probably to avoid
breaking people code.

Now we are fully C++ compliant ;-)

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