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

Unified Diff: net/disk_cache/backend_impl.cc

Issue 115848: Disk cache: Fix a signed / unsigned comparison on cl 17052 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_impl.cc
===================================================================
--- net/disk_cache/backend_impl.cc (revision 17052)
+++ net/disk_cache/backend_impl.cc (working copy)
@@ -789,7 +789,7 @@
ReportError(error);
// Reset the mask_ if it was not given by the user.
- if (mask_ == data_->header.table_len - 1)
+ if (static_cast<int>(mask_) == data_->header.table_len - 1)
mask_ = 0;
// Setting the index table length to an invalid value will force re-creation
@@ -988,7 +988,7 @@
void BackendImpl::PrepareForRestart() {
// Reset the mask_ if it was not given by the user.
- if (mask_ == data_->header.table_len - 1)
+ if (static_cast<int>(mask_) == data_->header.table_len - 1)
mask_ = 0;
data_->header.crash = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698