diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-19 23:03:40 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-19 23:03:40 +0000 |
commit | 2b1d4f22e452351e6c8870f5e7c667cb64883121 (patch) | |
tree | 2f4b075f4da51cf321bf0a3332527ec8ce1011b1 /net/disk_cache | |
parent | cde59fe9e6c86e416a7d025f2238b6433e615e24 (diff) | |
download | chromium_src-2b1d4f22e452351e6c8870f5e7c667cb64883121.zip chromium_src-2b1d4f22e452351e6c8870f5e7c667cb64883121.tar.gz chromium_src-2b1d4f22e452351e6c8870f5e7c667cb64883121.tar.bz2 |
Remove warnings for the net module.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1067 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/backend_impl.cc | 3 | ||||
-rw-r--r-- | net/disk_cache/entry_impl.cc | 5 |
2 files changed, 5 insertions, 3 deletions
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<size_t>(kMaxInternalKeyLength)) num_blocks = 1; else num_blocks = static_cast<int>((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<size_t>(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<size_t>(unreported_size_[index])); backend_->ModifyStorageSize(0, static_cast<int>(len)); unreported_size_[index] = 0; |