projects
/
typhoon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update codebase to remove clang warnings (and a couple of legit errors
[typhoon.git]
/
src
/
chess.h
diff --git
a/src/chess.h
b/src/chess.h
index c8157016f3480a73bdda9b563a03eed4a496a1fb..2bfec4d67479cd190f28afb5f51302420ebbe29a 100755
(executable)
--- a/
src/chess.h
+++ b/
src/chess.h
@@
-1233,8
+1233,8
@@
_assert(CHAR *szFile, ULONG uLine);
RANK1(c) || \
FILEA(c) || \
FILEH(c))
RANK1(c) || \
FILEA(c) || \
FILEH(c))
-#define CORNER_DISTANCE(c) (MAX(MIN((ULONG)
abs
(RANK(c) - 7), RANK(c)),\
- MIN((ULONG)
abs
(FILE(c) - 7), FILE(c))))
+#define CORNER_DISTANCE(c) (MAX(MIN((ULONG)(RANK(c) - 7), RANK(c)),\
+ MIN((ULONG)(FILE(c) - 7), FILE(c))))
#define IN_CORNER(c) (((c) == A8) || \
((c) == A1) || \
((c) == H8) || \
#define IN_CORNER(c) (((c) == A8) || \
((c) == A1) || \
((c) == H8) || \