mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Fix a warning under MSVC
Somehow silly warning C4800: 'int' :forcing value to bool 'true' or 'false'(performance warning) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user