From 1e97cdd9f3d16a11979229ae439e7ca7695cde3a Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 27 Apr 2009 18:00:45 +0100 Subject: [PATCH] Fix a warning under MSVC Somehow silly warning C4800: 'int' :forcing value to bool 'true' or 'false'(performance warning) Signed-off-by: Marco Costalba --- src/direction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/direction.h b/src/direction.h index f2ba6ec3..1890f1cf 100644 --- a/src/direction.h +++ b/src/direction.h @@ -74,7 +74,7 @@ inline SignedDirection signed_direction_between_squares(Square s1, Square 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; } -- 2.39.2