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

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

Issue 1826733002: Remove ASSERT_WITH_MESSAGE family. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/wtf/dtoa.cpp
diff --git a/third_party/WebKit/Source/wtf/dtoa.cpp b/third_party/WebKit/Source/wtf/dtoa.cpp
index 176021882c79df0acd40c26e29bf45b5ce5a62ed..508cb987db35c13b133997851c5f19500a30bf2a 100644
--- a/third_party/WebKit/Source/wtf/dtoa.cpp
+++ b/third_party/WebKit/Source/wtf/dtoa.cpp
@@ -620,7 +620,7 @@ static ALWAYS_INLINE int quorem(BigInt& b, BigInt& s)
ASSERT(s.size() <= 1 || s.words()[s.size() - 1]);
n = s.size();
- ASSERT_WITH_MESSAGE(b.size() <= n, "oversize b in quorem");
+ DCHECK_LE(b.size(), n) << "oversize b in quorem";
if (b.size() < n)
return 0;
sx = s.words();
@@ -628,7 +628,7 @@ static ALWAYS_INLINE int quorem(BigInt& b, BigInt& s)
bx = b.words();
bxe = bx + n;
q = *bxe / (*sxe + 1); /* ensure q <= true quotient */
- ASSERT_WITH_MESSAGE(q <= 9, "oversized quotient in quorem");
+ DCHECK_LE(q, 9u) << "oversized quotient in quorem";
if (q) {
borrow = 0;
carry = 0;

Powered by Google App Engine
This is Rietveld 408576698