# HG changeset patch # User Darkvater # Date 1162941927 0 # Node ID b6cc621b117376256dd663c255fa7310ad971187 # Parent cf05383e4df54a400454287de2f98232e03919fe (svn r7108) -Fix (r7106): signed/unsigned comparison warning diff -r cf05383e4df5 -r b6cc621b1173 rail_cmd.c --- a/rail_cmd.c Tue Nov 07 22:34:59 2006 +0000 +++ b/rail_cmd.c Tue Nov 07 23:25:27 2006 +0000 @@ -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;