From: <Mee...@us...> - 2012-01-28 19:47:28
|
Revision: 3755 http://sc2.svn.sourceforge.net/sc2/?rev=3755&view=rev Author: Meep-Eep Date: 2012-01-28 19:47:22 +0000 (Sat, 28 Jan 2012) Log Message: ----------- Fix for src\uqm\outfit.c(569) : warning C4146: unary minus operator applied to unsigned type, result still unsigned Modified Paths: -------------- trunk/sc2/src/uqm/outfit.c Modified: trunk/sc2/src/uqm/outfit.c =================================================================== --- trunk/sc2/src/uqm/outfit.c 2012-01-28 19:30:52 UTC (rev 3754) +++ trunk/sc2/src/uqm/outfit.c 2012-01-28 19:47:22 UTC (rev 3755) @@ -566,7 +566,7 @@ { 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. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |