Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1172)

Unified Diff: src/zone.cc

Issue 1051213005: Fix DCHECK with unsigned int in zone.cc. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone.cc
diff --git a/src/zone.cc b/src/zone.cc
index 5a7245bd44b86a53bc52c19a445b38ed156d92f4..9dcebba2dc1fc8fee3fd4c5fd363e6f55b3b47c0 100644
--- a/src/zone.cc
+++ b/src/zone.cc
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698