From 8786045eab03e0cec5847bf8d5cf8173bfde0811 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 7 Nov 2006 23:25:27 +0000 Subject: [PATCH] (svn r7108) -Fix (r7106): signed/unsigned comparison warning --- rail_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rail_cmd.c b/rail_cmd.c index 29999fabbc..6c3593ea01 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -285,7 +285,7 @@ int32 CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) /* XXX Assume a 'higher' railtype has preference. This means we * will convert from normal rail to electrified rail, but not * the other way around. */ - if (GetRailType(tile) < p1) { + if (GetRailType(tile) < (RailType)p1) { ret = DoCommand(tile, tile, p1, flags, CMD_CONVERT_RAIL); if (CmdFailed(ret)) return ret; cost += ret;