(svn r1451) Fix some of the signed/unsigned comparison warnings

This commit is contained in:
tron
2005-01-09 21:25:44 +00:00
parent d2e02df881
commit 4450ff105c
20 changed files with 39 additions and 33 deletions

View File

@@ -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;
}