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:
parent
f746d35775
commit
145a2f45f3
@ -76,7 +76,8 @@ Handle<BytecodeArray> BytecodeArrayBuilder::ToBytecodeArray() {
|
||||
|
||||
template <size_t 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();
|
||||
for (int i = 1; i < static_cast<int>(N); i++) {
|
||||
DCHECK(OperandIsValid(Bytecodes::FromByte(bytes[0]), i - 1, bytes[i]));
|
||||
|
Loading…
Reference in New Issue
Block a user