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}
This commit is contained in:
yangguo 2015-04-17 02:06:56 -07:00 committed by Commit bot
parent 14ec8077cc
commit 4e37bd0684

View File

@ -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;