Fix a sign-compare error to make gcc 4.9.2 happy.

This is from
347fa90626

BUG=

Review URL: https://codereview.chromium.org/1365113003

Cr-Commit-Position: refs/heads/master@{#30932}
This commit is contained in:
paul.lind 2015-09-25 04:31:27 -07:00 committed by Commit bot
parent f746d35775
commit 145a2f45f3

View File

@ -76,7 +76,8 @@ Handle<BytecodeArray> BytecodeArrayBuilder::ToBytecodeArray() {
template <size_t N> template <size_t N>
void BytecodeArrayBuilder::Output(uint8_t(&bytes)[N]) { void BytecodeArrayBuilder::Output(uint8_t(&bytes)[N]) {
DCHECK_EQ(Bytecodes::NumberOfOperands(Bytecodes::FromByte(bytes[0])), N - 1); DCHECK_EQ(Bytecodes::NumberOfOperands(Bytecodes::FromByte(bytes[0])),
static_cast<int>(N) - 1);
last_bytecode_start_ = bytecodes()->size(); last_bytecode_start_ = bytecodes()->size();
for (int i = 1; i < static_cast<int>(N); i++) { for (int i = 1; i < static_cast<int>(N); i++) {
DCHECK(OperandIsValid(Bytecodes::FromByte(bytes[0]), i - 1, bytes[i])); DCHECK(OperandIsValid(Bytecodes::FromByte(bytes[0]), i - 1, bytes[i]));