]> git.sesse.net Git - stockfish/blobdiff - src/movegen.cpp
Make casting styles consistent
[stockfish] / src / movegen.cpp
index f0733c73b660f350c326905af2691d4a545a776d..c6a8dbb8cb7b28927ccf567f94c5935f1ae921cb 100644 (file)
@@ -246,7 +246,7 @@ template<GenType Type>
 ExtMove* generate(const Position& pos, ExtMove* moveList) {
 
   static_assert(Type != LEGAL, "Unsupported type in generate()");
-  assert((Type == EVASIONS) == (bool)pos.checkers());
+  assert((Type == EVASIONS) == bool(pos.checkers()));
 
   Color us = pos.side_to_move();