Bug 1135708 - Followup: Fix a few warnings-as-errors related build problems on a CLOSED TREE. (rs=Waldo)

This commit is contained in:
Eric Faust 2015-07-27 13:44:44 -07:00
parent 89e5d96fae
commit 499c01e9ed
2 changed files with 4 additions and 2 deletions

View File

@ -7789,13 +7789,13 @@ BytecodeEmitter::emitTree(ParseNode* pn)
if (!emitTree(subexpr))
return false;
}
for (int i = 0; i < pn->pn_count - 1; i++) {
for (uint32_t i = 0; i < pn->pn_count - 1; i++) {
if (!emit1(JSOP_POW))
return false;
}
break;
}
case PNK_TYPEOFNAME:
ok = emitTypeof(pn, JSOP_TYPEOF);
break;

View File

@ -959,6 +959,7 @@ Fold(ExclusiveContext* cx, ParseNode** pnp, Parser<FullParseHandler>& parser, bo
case PNK_MULASSIGN:
case PNK_DIVASSIGN:
case PNK_MODASSIGN:
case PNK_POWASSIGN:
case PNK_ELEM:
case PNK_SUPERELEM:
case PNK_COLON:
@ -1009,6 +1010,7 @@ Fold(ExclusiveContext* cx, ParseNode** pnp, Parser<FullParseHandler>& parser, bo
case PNK_STAR:
case PNK_DIV:
case PNK_MOD:
case PNK_POW:
case PNK_COMMA:
case PNK_NEW:
case PNK_CALL: