Fix Windows VC9 debug compiler warnings. No bug, r=themaid, r=terrence

--HG--
extra : rebase_source : 173f849857d3350be3f0a4f39bce4444369b9b82
This commit is contained in:
Jeff Walden 2012-08-29 15:37:22 -07:00
parent edd3f8a110
commit 6af42b2074
2 changed files with 3 additions and 3 deletions

View File

@ -5968,7 +5968,7 @@ ExpressionDecompiler::decompilePC(jsbytecode *pc)
else
return write("[") &&
quote(prop, '\'') &&
write("]") >= 0;
write("]");
return true;
}
case JSOP_GETELEM:
@ -6024,7 +6024,7 @@ ExpressionDecompiler::decompilePC(jsbytecode *pc)
return write(js_this_str);
case JSOP_CALL:
case JSOP_FUNCALL:
return decompilePC(pcstack[-(GET_ARGC(pc) + 2)]) &&
return decompilePC(pcstack[-int32_t(GET_ARGC(pc) + 2)]) &&
write("(...)");
default:
break;

View File

@ -178,7 +178,7 @@ XDRScriptBindings(XDRState<mode> *xdr, LifoAllocScope &las, unsigned numArgs, un
}
for (BindingIter bi(script->bindings); bi; bi++) {
uint8_t u8 = (uint8_t(bi->kind()) << 1) | bi->aliased();
uint8_t u8 = (uint8_t(bi->kind()) << 1) | uint8_t(bi->aliased());
if (!xdr->codeUint8(&u8))
return false;
}