changeset 5055:ae6047e91cdd draft

(svn r7108) -Fix (r7106): signed/unsigned comparison warning
author Darkvater <Darkvater@openttd.org>
date Tue, 07 Nov 2006 23:25:27 +0000
parents e8337a74da5f
children 314912c1e717
files rail_cmd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -285,7 +285,7 @@
 			/* 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;