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

Unified Diff: base/pickle.h

Issue 6469070: More DCHECK() updates. A mixture of _EQ and _GE. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 10 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: base/pickle.h
diff --git a/base/pickle.h b/base/pickle.h
index ad08b7c0af0156131120bc0c875412705402d31d..305bef47648300c8addd207b6326d26aac717184 100644
--- a/base/pickle.h
+++ b/base/pickle.h
@@ -143,12 +143,12 @@ class Pickle {
// to the Pickle constructor.
template <class T>
T* headerT() {
- DCHECK(sizeof(T) == header_size_);
+ DCHECK_EQ(sizeof(T), header_size_);
return static_cast<T*>(header_);
}
template <class T>
const T* headerT() const {
- DCHECK(sizeof(T) == header_size_);
+ DCHECK_EQ(sizeof(T), header_size_);
return static_cast<const T*>(header_);
}

Powered by Google App Engine
This is Rietveld 408576698