Commit fe20b89e authored by jarin@chromium.org's avatar jarin@chromium.org

Fix int comparison with vector::size.

TBR=titzer@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23363 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a53b7ff6
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment