diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 01:05:11 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 01:05:11 +0000 |
commit | 44a1cbfaad3079e29aec66aebb0a10d0c1980688 (patch) | |
tree | 7aa4371feb3a65a5a2482e0f27523af71cb3eb10 /base/pickle.cc | |
parent | 4c0040c49331c5cb5b88960ecec04ce8a5f0756a (diff) | |
download | chromium_src-44a1cbfaad3079e29aec66aebb0a10d0c1980688.zip chromium_src-44a1cbfaad3079e29aec66aebb0a10d0c1980688.tar.gz chromium_src-44a1cbfaad3079e29aec66aebb0a10d0c1980688.tar.bz2 |
Fix more compiler warnings.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/pickle.cc')
-rw-r--r-- | base/pickle.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/pickle.cc b/base/pickle.cc index 3c3c7e2..73a764a 100644 --- a/base/pickle.cc +++ b/base/pickle.cc @@ -58,7 +58,7 @@ Pickle::Pickle(int header_size) header_size_(AlignInt(header_size, sizeof(uint32))), capacity_(0), variable_buffer_offset_(0) { - DCHECK(header_size >= sizeof(Header)); + DCHECK(static_cast<size_t>(header_size) >= sizeof(Header)); DCHECK(header_size <= kPayloadUnit); Resize(kPayloadUnit); header_->payload_size = 0; @@ -293,7 +293,7 @@ bool Pickle::WriteData(const char* data, int length) { } char* Pickle::BeginWriteData(int length) { - DCHECK_EQ(variable_buffer_offset_, 0) << + DCHECK_EQ(variable_buffer_offset_, 0U) << "There can only be one variable buffer in a Pickle"; if (!WriteInt(length)) @@ -346,7 +346,7 @@ const char* Pickle::FindNext(size_t header_size, const char* start, const char* end) { DCHECK(header_size == AlignInt(header_size, sizeof(uint32))); - DCHECK(header_size <= kPayloadUnit); + DCHECK(header_size <= static_cast<size_t>(kPayloadUnit)); const Header* hdr = reinterpret_cast<const Header*>(start); const char* payload_base = start + header_size; |