summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-02 18:57:54 +0000
committerrubidium <rubidium@openttd.org>2007-03-02 18:57:54 +0000
commit5ec31ebc2b921170c1371f09d9f00d7b14d7d111 (patch)
tree4ada31d117a36b6c4f5abcc6c188c276d654d631 /src/economy.cpp
parentcd7b71092b8c7668684cbd380168ead74516d3eb (diff)
downloadopenttd-5ec31ebc2b921170c1371f09d9f00d7b14d7d111.tar.xz
(svn r8979) -Fix (r8978): unsigned vs signed comparisons.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
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;