mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00: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:
parent
ab69f50c64
commit
1e97cdd9f3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue