Fix DCHECK with unsigned int in zone.cc.
authoryangguo <yangguo@chromium.org>
Fri, 17 Apr 2015 09:06:56 +0000 (02:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 17 Apr 2015 09:06:45 +0000 (09:06 +0000)
R=svenpanne@chromium.org
BUG=v8:4037
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#27909}

src/zone.cc

index 5a7245bd44b86a53bc52c19a445b38ed156d92f4..9dcebba2dc1fc8fee3fd4c5fd363e6f55b3b47c0 100644 (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;