summaryrefslogtreecommitdiff
path: root/direction.h
diff options
context:
space:
mode:
Diffstat (limited to 'direction.h')
-rw-r--r--direction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/direction.h b/direction.h
index 4aed8bea3..49a2b6340 100644
--- a/direction.h
+++ b/direction.h
@@ -34,7 +34,7 @@ typedef enum DirDiff {
static inline DirDiff DirDifference(Direction d0, Direction d1)
{
- return (DirDiff)(d0 + 8 - d1) % 8;
+ return (DirDiff)((d0 + 8 - d1) % 8);
}
static inline DirDiff ChangeDirDiff(DirDiff d, DirDiff delta)