From f74e57584142a43073f35a741423e2c15e445462 Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Sat, 28 Jan 2012 19:47:22 +0000 Subject: [PATCH] Fix for src\uqm\outfit.c(569) : warning C4146: unary minus operator applied to unsigned type, result still unsigned git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3755 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/uqm/outfit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/uqm/outfit.c b/sc2/src/uqm/outfit.c index 3f0848bc9..f16846ab4 100644 --- a/sc2/src/uqm/outfit.c +++ b/sc2/src/uqm/outfit.c @@ -566,7 +566,7 @@ ChangeFuelQuantity (void) { const int maxFit = GetFuelTankCapacity () - GLOBAL_SIS (FuelOnBoard); const int maxAfford = GLOBAL_SIS (ResUnits) / GLOBAL (FuelCost); - const int minFit = -GLOBAL_SIS (FuelOnBoard); + const int minFit = - (int) GLOBAL_SIS (FuelOnBoard); if (incr > maxFit) incr = maxFit; // All we can hold.