Fix warning.
authorBrian Hackett <bhackett1024@gmail.com>
Tue, 05 Jul 2011 22:41:41 -0700
changeset 75179 49977d3bfd265bc33a8d563896a32a9b07360be6
parent 75178 583cb8819d6201e692dec1db62d593c82b8934fb
child 75180 462359e1347b569ac3f641580b9fcc5c4c2ec42a
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
milestone8.0a1
Fix warning.
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -4549,17 +4549,17 @@ types::CheckNewScriptProperties(JSContex
 
     /* Strawman object to add properties to and watch for duplicates. */
     JSObject *baseobj = NewBuiltinClassInstance(cx, &js_ObjectClass, gc::FINALIZE_OBJECT16);
     if (!baseobj)
         return;
 
     Vector<TypeNewScript::Initializer> initializerList(cx);
     AnalyzeNewScriptProperties(cx, type, script, &baseobj, &initializerList);
-    if (!baseobj || baseobj->slotSpan() == 0 && type->newScriptCleared)
+    if (!baseobj || (baseobj->slotSpan() == 0 && type->newScriptCleared))
         return;
 
     gc::FinalizeKind kind = gc::GetGCObjectKind(baseobj->slotSpan());
 
     /* We should not have overflowed the maximum number of fixed slots for an object. */
     JS_ASSERT(gc::GetGCKindSlots(kind) >= baseobj->slotSpan());
 
     TypeNewScript::Initializer done(TypeNewScript::Initializer::DONE, 0);