Reviewers: titzer,
Message:
Committed patchset #1 manually as 23363 (tree was closed).
Description:
Fix int comparison with vector::size.
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=23363
Please review this at https://codereview.chromium.org/503023002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/compiler/node.cc
Index: src/compiler/node.cc
diff --git a/src/compiler/node.cc b/src/compiler/node.cc
index
d12aeb82b3572c1d44b966c95335147e84ea3337..dcb3bfe9e34e38f72ae6bbbb36ff9c5540027ca9
100644
--- a/src/compiler/node.cc
+++ b/src/compiler/node.cc
@@ -18,7 +18,7 @@ void Node::CollectProjections(NodeVector* projections) {
if ((*i)->opcode() != IrOpcode::kProjection) continue;
int32_t index = OpParameter<int32_t>(*i);
DCHECK_GE(index, 0);
- DCHECK_LT(index, projections->size());
+ DCHECK_LT(index, static_cast<int32_t>(projections->size()));
DCHECK_EQ(NULL, (*projections)[index]);
(*projections)[index] = *i;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.