Integer sign pedantry.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5573 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2012-12-12 15:21:05 +00:00
parent 046cb2b4d6
commit a5622bd695

View File

@ -1269,7 +1269,7 @@ static JSBool ShipSetProperty(JSContext *context, JSObject *this, jsid propID, J
if (JS_ValueToInt32(context, *value, &iValue))
{
if (iValue < [[entity escortGroup] count] - 1)
if ((NSInteger)iValue < (NSInteger)[[entity escortGroup] count] - 1)
{
OOJSReportError(context, @"ship.%@ must be >= current escort numbers.", OOStringFromJSPropertyIDAndSpec(context, propID, sShipProperties));
return NO;