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

Unified Diff: third_party/WebKit/Source/wtf/BitArray.h

Issue 1840163002: Replace all occurrences of RELEASE_ASSERT in wtf with CHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use CHECK_NE instead of CHECK. 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
« no previous file with comments | « third_party/WebKit/Source/wtf/ArrayBuffer.h ('k') | third_party/WebKit/Source/wtf/Deque.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/BitArray.h
diff --git a/third_party/WebKit/Source/wtf/BitArray.h b/third_party/WebKit/Source/wtf/BitArray.h
index 9a9304f1c589046f26c2895f7e673c5bfc909c65..294327309f43b90084bf32110b93a836cae9c2fb 100644
--- a/third_party/WebKit/Source/wtf/BitArray.h
+++ b/third_party/WebKit/Source/wtf/BitArray.h
@@ -43,19 +43,19 @@ public:
void set(unsigned index)
{
- RELEASE_ASSERT(index < arraySize);
+ CHECK_LT(index, arraySize);
m_data[index / 8] |= 1 << (index & 7);
}
void clear(unsigned index)
{
- RELEASE_ASSERT(index < arraySize);
+ CHECK_LT(index, arraySize);
m_data[index / 8] &= ~(1 << (index & 7));
}
bool get(unsigned index) const
{
- RELEASE_ASSERT(index < arraySize);
+ CHECK_LT(index, arraySize);
return !!(m_data[index / 8] & (1 << (index & 7)));
}
« no previous file with comments | « third_party/WebKit/Source/wtf/ArrayBuffer.h ('k') | third_party/WebKit/Source/wtf/Deque.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698