projects
/
platform
/
upstream
/
v8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f746d35
)
Fix a sign-compare error to make gcc 4.9.2 happy.
author
paul.lind
<paul.lind@imgtec.com>
Fri, 25 Sep 2015 11:31:27 +0000
(
04:31
-0700)
committer
Commit bot
<commit-bot@chromium.org>
Fri, 25 Sep 2015 11:31:45 +0000
(11:31 +0000)
This is from
https://chromium.googlesource.com/v8/v8/+/
347fa90626a448e3535cf6aa100124dfd5b711ce
BUG=
Review URL: https://codereview.chromium.org/
1365113003
Cr-Commit-Position: refs/heads/master@{#30932}
src/interpreter/bytecode-array-builder.cc
patch
|
blob
|
history
diff --git
a/src/interpreter/bytecode-array-builder.cc
b/src/interpreter/bytecode-array-builder.cc
index
9bc634e
..
e0bc03c
100644
(file)
--- a/
src/interpreter/bytecode-array-builder.cc
+++ b/
src/interpreter/bytecode-array-builder.cc
@@
-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]));