changeset 3148:7adf2f6b42ae draft

(svn r3769) Add a cast to make KUDr's C++ compiler happy
author tron <tron@openttd.org>
date Sun, 05 Mar 2006 12:54:22 +0000
parents cc4d0374cee2
children 93d5db93d000
files direction.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/direction.h
+++ b/direction.h
@@ -30,7 +30,7 @@
 
 static inline DiagDirection ReverseDiagDir(DiagDirection d)
 {
-	return 2 ^ d;
+	return (DiagDirection)(2 ^ d);
 }