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

Unified Diff: third_party/WebKit/Source/platform/wtf/dtoa/utils.h

Issue 2833123002: Replace ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/wtf (Closed)
Patch Set: wtf Created 3 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
Index: third_party/WebKit/Source/platform/wtf/dtoa/utils.h
diff --git a/third_party/WebKit/Source/platform/wtf/dtoa/utils.h b/third_party/WebKit/Source/platform/wtf/dtoa/utils.h
index 588bf3db9a1685e6143ebd410a0c728d1e19e972..29ffd5b65a6744d92f1c4736813d024d6ec83a15 100644
--- a/third_party/WebKit/Source/platform/wtf/dtoa/utils.h
+++ b/third_party/WebKit/Source/platform/wtf/dtoa/utils.h
@@ -160,7 +160,8 @@ class Vector {
// Access individual vector elements.
T& operator[](int index) const {
- RELEASE_ASSERT(0 <= index && index < length_);
+ CHECK_LE(0, index);
+ CHECK_LT(index, length_);
return start_[index];
}

Powered by Google App Engine
This is Rietveld 408576698