From 8186dd616b628d822abad295183c29de3d4b95ab Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 7 Sep 2009 10:00:14 +0000 Subject: (svn r17449) -Fix (r17436): MSVC compile warning about comparing signed and unsigned values --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2