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

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: Updating pickle.h order 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
« no previous file with comments | « base/message_pump_win.cc ('k') | base/platform_file_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/pickle.h
diff --git a/base/pickle.h b/base/pickle.h
index ad08b7c0af0156131120bc0c875412705402d31d..e3ee233f27db3666731ef609011a0f4260bcfeef 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(header_size_, sizeof(T));
return static_cast<T*>(header_);
}
template <class T>
const T* headerT() const {
- DCHECK(sizeof(T) == header_size_);
+ DCHECK_EQ(header_size_, sizeof(T));
return static_cast<const T*>(header_);
}
« no previous file with comments | « base/message_pump_win.cc ('k') | base/platform_file_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698