Mercurial > hg > openttd
changeset 3019:68e650fd5ff4 draft
(svn r3599) -Fix: added some casts to suppress some more warnings
author | truelight <truelight@openttd.org> |
---|---|
date | Mon, 13 Feb 2006 21:56:49 +0000 |
parents | 35cd7b11b216 |
children | 221a4c9a7340 |
files | pathfind.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pathfind.c +++ b/pathfind.c @@ -559,7 +559,7 @@ do { link = NTP_GET_LINK_PTR(tpf, offs); if (tile == link->tile && (link->typelength & 0x3U) == dir) { - if (length >= link->typelength >> 2) return false; + if (length >= (uint)(link->typelength >> 2)) return false; link->typelength = dir | (length << 2); return true; } @@ -612,8 +612,8 @@ for (;;) { link = NTP_GET_LINK_PTR(tpf, offs); if (tile == link->tile && (link->typelength & 0x3U) == dir) { - assert(link->typelength >> 2 <= length); - return length == link->typelength >> 2; + assert((uint)(link->typelength >> 2) <= length); + return length == (uint)(link->typelength >> 2); } offs = link->next; assert(offs != 0xffff);