Commit 4e37bd06 authored by yangguo's avatar yangguo Committed by Commit bot

Fix DCHECK with unsigned int in zone.cc.

R=svenpanne@chromium.org
BUG=v8:4037
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#27909}
parent 14ec8077
......@@ -264,8 +264,8 @@ Address Zone::NewExpand(size_t size) {
// Check for address overflow.
// (Should not happen since the segment is guaranteed to accomodate
// size bytes + header and alignment padding)
DCHECK_GE(reinterpret_cast<uintptr_t>(position_),
reinterpret_cast<uintptr_t>(result));
DCHECK(reinterpret_cast<uintptr_t>(position_) >=
reinterpret_cast<uintptr_t>(result));
limit_ = segment->end();
DCHECK(position_ <= limit_);
return result;
......
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