projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab69f50
)
Fix a warning under MSVC
author
Marco Costalba
<mcostalba@gmail.com>
Mon, 27 Apr 2009 17:00:45 +0000
(18:00 +0100)
committer
Marco 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
patch
|
blob
|
history
diff --git
a/src/direction.h
b/src/direction.h
index f2ba6ec339e407edca596632cb925befcba9ede6..1890f1cff7035832c390f6fc626ef36c97ff4c96 100644
(file)
--- 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;
}