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

Unified Diff: third_party/WebKit/Source/wtf/dtoa.cpp

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 years 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 | « third_party/WebKit/Source/wtf/allocator/Partitions.cpp ('k') | third_party/WebKit/Source/wtf/dtoa/diy-fp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/dtoa.cpp
diff --git a/third_party/WebKit/Source/wtf/dtoa.cpp b/third_party/WebKit/Source/wtf/dtoa.cpp
index dc143e6982a30969a2b89065eaf0572241ee652f..a0f46f83069bf67d3c1d667db17405a135ff16e7 100644
--- a/third_party/WebKit/Source/wtf/dtoa.cpp
+++ b/third_party/WebKit/Source/wtf/dtoa.cpp
@@ -80,7 +80,7 @@ static inline const char* formatStringTruncatingTrailingZerosIfNeeded(
// If we removed all trailing zeros, remove the decimal point as well.
if (truncatedLength == decimalPointPosition) {
- ASSERT(truncatedLength > 0);
+ DCHECK_GT(truncatedLength, 0u);
--truncatedLength;
}
« no previous file with comments | « third_party/WebKit/Source/wtf/allocator/Partitions.cpp ('k') | third_party/WebKit/Source/wtf/dtoa/diy-fp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698