(svn r8979) -Fix (r8978): unsigned vs signed comparisons.
authorrubidium
Fri, 02 Mar 2007 18:57:54 +0000
changeset 6525 52bebe2b485e
parent 6524 44e22a9b2c97
child 6526 85cfa44803d0
(svn r8979) -Fix (r8978): unsigned vs signed comparisons.
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;