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

Unified Diff: third_party/WebKit/Source/wtf/dtoa/diy-fp.h

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/dtoa.cpp ('k') | third_party/WebKit/Source/wtf/dtoa/double.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/diy-fp.h
diff --git a/third_party/WebKit/Source/wtf/dtoa/diy-fp.h b/third_party/WebKit/Source/wtf/dtoa/diy-fp.h
index 441b389735c570a7fcf7a936c72b1fbe4d64542b..ed1c6b9926e9bb7d59b394e12c112df2ddd3af60 100644
--- a/third_party/WebKit/Source/wtf/dtoa/diy-fp.h
+++ b/third_party/WebKit/Source/wtf/dtoa/diy-fp.h
@@ -51,8 +51,8 @@ class DiyFp {
// must be bigger than the significand of other.
// The result will not be normalized.
void Subtract(const DiyFp& other) {
- ASSERT(e_ == other.e_);
- ASSERT(f_ >= other.f_);
+ DCHECK_EQ(e_, other.e_);
+ DCHECK_GE(f_, other.f_);
f_ -= other.f_;
}
@@ -76,7 +76,7 @@ class DiyFp {
}
void Normalize() {
- ASSERT(f_ != 0);
+ DCHECK_NE(f_, 0u);
uint64_t f = f_;
int e = e_;
« no previous file with comments | « third_party/WebKit/Source/wtf/dtoa.cpp ('k') | third_party/WebKit/Source/wtf/dtoa/double.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698