Mercurial > hg > openttd
changeset 6199:f585c9c825f3 draft
(svn r8979) -Fix (r8978): unsigned vs signed comparisons.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 02 Mar 2007 18:57:54 +0000 |
parents | a2cdd211d091 |
children | ef415f4b3037 |
files | src/economy.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -1453,7 +1453,7 @@ /* if there is not enough to unload from pending, ensure it does not go -ve * else deduct amount actually unloaded from unload_pending */ - SB(ge->unload_pending, 0, 12, max(GB(ge->unload_pending, 0, 12) - amount_unloaded, 0)); + SB(ge->unload_pending, 0, 12, max(GB(ge->unload_pending, 0, 12) - amount_unloaded, 0U)); if (u->current_order.flags & OF_TRANSFER) { ge->feeder_profit += virtual_profit;