Fix a warning under MSVC
authorMarco Costalba <mcostalba@gmail.com>
Mon, 27 Apr 2009 17:00:45 +0000 (18:00 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 27 Apr 2009 17:00:45 +0000 (18:00 +0100)
Somehow silly warning C4800:
'int' :forcing value to bool 'true' or 'false'(performance warning)

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

index f2ba6ec..1890f1c 100644 (file)
@@ -74,7 +74,7 @@ inline SignedDirection signed_direction_between_squares(Square s1, Square s2) {
   return SignedDirection(SignedDirectionTable[s1][s2]);
 }
 
   return SignedDirection(SignedDirectionTable[s1][s2]);
 }
 
-inline bool direction_is_diagonal(Square s1, Square s2) {
+inline int direction_is_diagonal(Square s1, Square s2) {
   return DirectionTable[s1][s2] & 2;
 }
 
   return DirectionTable[s1][s2] & 2;
 }