From 517f2bcc57c5ef62ead1185790d7c3ec9e1cf1f2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 2 Mar 2007 18:57:54 +0000 Subject: (svn r8979) -Fix (r8978): unsigned vs signed comparisons. --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/economy.cpp b/src/economy.cpp index 6298582eb..b7eb0c65f 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1453,7 +1453,7 @@ int LoadUnloadVehicle(Vehicle *v, bool just_arrived) /* 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; -- cgit v1.2.3-70-g09d2