From 2b1d4f22e452351e6c8870f5e7c667cb64883121 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Tue, 19 Aug 2008 23:03:40 +0000 Subject: Remove warnings for the net module. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1067 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/backend_impl.cc | 3 ++- net/disk_cache/entry_impl.cc | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'net/disk_cache') diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc index 1845870..74eabbc 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc @@ -316,7 +316,8 @@ bool BackendImpl::CreateEntry(const std::string& key, Entry** entry) { int num_blocks; size_t key1_len = sizeof(EntryStore) - offsetof(EntryStore, key); - if (key.size() < key1_len || key.size() > kMaxInternalKeyLength) + if (key.size() < key1_len || + key.size() > static_cast(kMaxInternalKeyLength)) num_blocks = 1; else num_blocks = static_cast((key.size() - key1_len) / 256 + 2); diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc index 4baa869..19dcae8 100644 --- a/net/disk_cache/entry_impl.cc +++ b/net/disk_cache/entry_impl.cc @@ -442,7 +442,8 @@ bool EntryImpl::CreateEntry(Addr node_address, const std::string& key, } bool EntryImpl::IsSameEntry(const std::string& key, uint32 hash) { - if (entry_.Data()->hash != hash || entry_.Data()->key_len != key.size()) + if (entry_.Data()->hash != hash || + static_cast(entry_.Data()->key_len) != key.size()) return false; std::string my_key = GetKey(); @@ -756,7 +757,7 @@ bool EntryImpl::Flush(int index, int size, bool async) { offset = address.start_block() * address.BlockSize() + kBlockHeaderSize; // We just told the backend to store len bytes for real. - DCHECK(len == unreported_size_[index]); + DCHECK(len == static_cast(unreported_size_[index])); backend_->ModifyStorageSize(0, static_cast(len)); unreported_size_[index] = 0; -- cgit v1.1