summaryrefslogtreecommitdiffstats
path: root/base/pickle.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 20:34:25 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 20:34:25 +0000
commit8e03fec1b3cc0dd2e6f25cf943914e9e760b187a (patch)
tree496c8a1b46ee18a7ce7537539c5d207e4bf5396f /base/pickle.cc
parent2fc8f49dff31f79bff73b3491f3d07c8a0dfb9d5 (diff)
downloadchromium_src-8e03fec1b3cc0dd2e6f25cf943914e9e760b187a.zip
chromium_src-8e03fec1b3cc0dd2e6f25cf943914e9e760b187a.tar.gz
chromium_src-8e03fec1b3cc0dd2e6f25cf943914e9e760b187a.tar.bz2
Use DCHECK_GE() where possible in base/. Patch by Kushal Pisavadia (see http://codereview.chromium.org/6688056/ ), r=me.
BUG=58409 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/pickle.cc')
-rw-r--r--base/pickle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/pickle.cc b/base/pickle.cc
index 116d3f1..afe35db 100644
--- a/base/pickle.cc
+++ b/base/pickle.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -33,7 +33,7 @@ Pickle::Pickle(int header_size)
header_size_(AlignInt(header_size, sizeof(uint32))),
capacity_(0),
variable_buffer_offset_(0) {
- DCHECK(static_cast<size_t>(header_size) >= sizeof(Header));
+ DCHECK_GE(static_cast<size_t>(header_size), sizeof(Header));
DCHECK(header_size <= kPayloadUnit);
Resize(kPayloadUnit);
header_->payload_size = 0;