summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-07 10:00:14 +0000
committerrubidium <rubidium@openttd.org>2009-09-07 10:00:14 +0000
commit8186dd616b628d822abad295183c29de3d4b95ab (patch)
tree9eb60750e05d22b36b984a17eea0bf95efa05e82 /src
parentb4e5383078c3482d74088e32f20fc9592682358e (diff)
downloadopenttd-8186dd616b628d822abad295183c29de3d4b95ab.tar.xz
(svn r17449) -Fix (r17436): MSVC compile warning about comparing signed and unsigned values
Diffstat (limited to 'src')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 07fefdac1..205797984 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -890,7 +890,7 @@ static uint DeliverGoodsToIndustry(const Station *st, CargoID cargo_type, uint n
/* Insert the industry into _cargo_delivery_destinations, if not yet contained */
_cargo_delivery_destinations.Include(ind);
- uint amount = min(num_pieces, 0xFFFF - ind->incoming_cargo_waiting[cargo_index]);
+ uint amount = min(num_pieces, 0xFFFFU - ind->incoming_cargo_waiting[cargo_index]);
ind->incoming_cargo_waiting[cargo_index] += amount;
num_pieces -= amount;
accepted += amount;