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
This commit is contained in:
Meep-Eep
2012-01-28 19:47:22 +00:00
parent d6738ca687
commit f74e575841
+1 -1
View File
@@ -566,7 +566,7 @@ ChangeFuelQuantity (void)
{ {
const int maxFit = GetFuelTankCapacity () - GLOBAL_SIS (FuelOnBoard); const int maxFit = GetFuelTankCapacity () - GLOBAL_SIS (FuelOnBoard);
const int maxAfford = GLOBAL_SIS (ResUnits) / GLOBAL (FuelCost); const int maxAfford = GLOBAL_SIS (ResUnits) / GLOBAL (FuelCost);
const int minFit = -GLOBAL_SIS (FuelOnBoard); const int minFit = - (int) GLOBAL_SIS (FuelOnBoard);
if (incr > maxFit) if (incr > maxFit)
incr = maxFit; // All we can hold. incr = maxFit; // All we can hold.