diff options
author | tron <tron@openttd.org> | 2005-01-09 21:25:44 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-09 21:25:44 +0000 |
commit | 49584082a08db84344a54ae7e0a7927915261edf (patch) | |
tree | 3a16c9375ca0fbd2f06a419b1b0876bf48c7a3e0 /tunnelbridge_cmd.c | |
parent | c6c86abeeec71db7ae8ef484af6f6e2373528a71 (diff) | |
download | openttd-49584082a08db84344a54ae7e0a7927915261edf.tar.xz |
(svn r1451) Fix some of the signed/unsigned comparison warnings
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r-- | tunnelbridge_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index 06d398ffa..135f7fd47 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -1311,14 +1311,14 @@ static uint32 GetTileTrackStatus_TunnelBridge(uint tile, TransportType mode) if ((m5 & 0xF0) == 0) { /* This is a tunnel */ - if (((m5 & 0xC) >> 2) == mode) { + if (((m5 & 0xCU) >> 2) == mode) { /* Tranport in the tunnel is compatible */ return m5&1 ? 0x202 : 0x101; } } else if (m5 & 0x80) { /* This is a bridge */ result = 0; - if (((m5 & 0x6) >> 1) == mode) { + if (((m5 & 0x6U) >> 1) == mode) { /* Transport over the bridge is compatible */ result = m5&1 ? 0x202 : 0x101; } @@ -1334,7 +1334,7 @@ static uint32 GetTileTrackStatus_TunnelBridge(uint tile, TransportType mode) return result; } else { /* Transport underneath */ - if ((m5 & 0x18) >> 3 != mode) + if ((m5 & 0x18U) >> 3 != mode) /* Incompatible transport underneath */ return result; } |