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

Unified Diff: third_party/WebKit/Source/wtf/text/IntegerToStringConversion.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
Index: third_party/WebKit/Source/wtf/text/IntegerToStringConversion.h
diff --git a/third_party/WebKit/Source/wtf/text/IntegerToStringConversion.h b/third_party/WebKit/Source/wtf/text/IntegerToStringConversion.h
index 16642d6337d848acf1e25482766d57356abef3a2..65bbb0ae0a2feb7ca2ab4007c47ccc79b3f651c9 100644
--- a/third_party/WebKit/Source/wtf/text/IntegerToStringConversion.h
+++ b/third_party/WebKit/Source/wtf/text/IntegerToStringConversion.h
@@ -50,14 +50,14 @@ class IntegerToStringConverter {
do {
--m_begin;
- ASSERT(m_begin != m_buffer);
+ DCHECK_NE(m_begin, m_buffer);
*m_begin = static_cast<LChar>((value % 10) + '0');
value /= 10;
} while (value);
if (isNegative) {
--m_begin;
- ASSERT(m_begin != m_buffer);
+ DCHECK_NE(m_begin, m_buffer);
*m_begin = static_cast<LChar>('-');
}
« no previous file with comments | « third_party/WebKit/Source/wtf/text/ASCIIFastPath.h ('k') | third_party/WebKit/Source/wtf/text/StringBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698