Bug 991234 -- Squelch warning r=h4writer

This commit is contained in:
Nicholas D. Matsakis 2014-04-03 05:45:39 -04:00
parent 6d3d8d1203
commit baff5b419b
2 changed files with 3 additions and 3 deletions

View File

@ -10140,8 +10140,8 @@ IonBuilder::lookupTypedObjectField(MDefinition *typedObj,
if (fieldDescrs->empty())
return true;
*fieldOffset = int32_t(offset);
JS_ASSERT(*fieldOffset >= 0);
JS_ASSERT(offset >= 0);
*fieldOffset = offset;
return true;
}

View File

@ -325,7 +325,7 @@ TypeDescrSet::fieldNamed(IonBuilder &builder,
// Initialize `*offset` and `*out` for the case where incompatible
// or absent fields are found.
*offset = SIZE_MAX;
*offset = -1;
*index = SIZE_MAX;
*out = TypeDescrSet();