diff options
author | peter1138 <peter1138@openttd.org> | 2006-01-26 17:43:31 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-01-26 17:43:31 +0000 |
commit | 452ae7470baa26219242367ad452f7944bc9b1e3 (patch) | |
tree | a048cdfbb208510badaa5f41f8c3cad2f429ff19 | |
parent | c8a2c7ae9452de0f86fb3036becccc86f90a9a40 (diff) | |
download | openttd-452ae7470baa26219242367ad452f7944bc9b1e3.tar.xz |
(svn r3443) - Fix signed/unsigned comparison warning when compiling with gcc 2.95 (tokai)
-rw-r--r-- | rail.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |