# HG changeset patch # User rubidium # Date 1172861874 0 # Node ID 52bebe2b485eb2d690558d4d96a8c1215f6707db # Parent 44e22a9b2c97b8d280881290920916883f3a4a88 (svn r8979) -Fix (r8978): unsigned vs signed comparisons. diff -r 44e22a9b2c97 -r 52bebe2b485e src/economy.cpp --- a/src/economy.cpp Fri Mar 02 18:49:11 2007 +0000 +++ b/src/economy.cpp Fri Mar 02 18:57:54 2007 +0000 @@ -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;