summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-26 17:43:31 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-26 17:43:31 +0000
commit452ae7470baa26219242367ad452f7944bc9b1e3 (patch)
treea048cdfbb208510badaa5f41f8c3cad2f429ff19
parentc8a2c7ae9452de0f86fb3036becccc86f90a9a40 (diff)
downloadopenttd-452ae7470baa26219242367ad452f7944bc9b1e3.tar.xz
(svn r3443) - Fix signed/unsigned comparison warning when compiling with gcc 2.95 (tokai)
-rw-r--r--rail.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/rail.h b/rail.h
index 0b0ebfb33..c051a82c6 100644
--- a/rail.h
+++ b/rail.h
@@ -80,13 +80,13 @@ typedef enum Tracks {
/** These are the bitfield variants of the above */
typedef enum TrackBits {
- TRACK_BIT_DIAG1 = 1, // 0
- TRACK_BIT_DIAG2 = 2, // 1
- TRACK_BIT_UPPER = 4, // 2
- TRACK_BIT_LOWER = 8, // 3
- TRACK_BIT_LEFT = 16, // 4
- TRACK_BIT_RIGHT = 32, // 5
- TRACK_BIT_MASK = 0x3F,
+ TRACK_BIT_DIAG1 = 1U, // 0
+ TRACK_BIT_DIAG2 = 2U, // 1
+ TRACK_BIT_UPPER = 4U, // 2
+ TRACK_BIT_LOWER = 8U, // 3
+ TRACK_BIT_LEFT = 16U, // 4
+ TRACK_BIT_RIGHT = 32U, // 5
+ TRACK_BIT_MASK = 0x3FU,
} TrackBits;
/** These are a combination of tracks and directions. Values are 0-5 in one