summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--direction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/direction.h b/direction.h
index 0300db8a9..8a45dc43e 100644
--- a/direction.h
+++ b/direction.h
@@ -30,7 +30,7 @@ typedef enum DiagDirection {
static inline DiagDirection ReverseDiagDir(DiagDirection d)
{
- return 2 ^ d;
+ return (DiagDirection)(2 ^ d);
}