diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 11:19:15 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 11:19:15 +0000 |
commit | e9ad435d7ccd76282c3876afb2c77802728de80b (patch) | |
tree | 18e6f0f2bc24c7f0a0fb75ea7922c937360d7a5d /base | |
parent | f22dff769f04cee574d24c0eb3cf919b5035198a (diff) | |
download | chromium_src-e9ad435d7ccd76282c3876afb2c77802728de80b.zip chromium_src-e9ad435d7ccd76282c3876afb2c77802728de80b.tar.gz chromium_src-e9ad435d7ccd76282c3876afb2c77802728de80b.tar.bz2 |
Original change: http://codereview.chromium.org/4856003/
(landing on behalf of kristianm)
Suppress Android warnings
Android generates warnings for comparing signed and unsigned numbers.
The ones in this CL should be safe.
BUG=62949
TEST=None
Review URL: http://codereview.chromium.org/5035002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/file_util_posix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 119bc0e..0d8ccbb 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -132,7 +132,7 @@ int CountFilesCreatedAfter(const FilePath& path, // which are older than |comparison_time| are considered newer // (current implementation) 2. files newer than // |comparison_time| are considered older. - if (st.st_ctime >= comparison_time.ToTimeT()) + if (static_cast<time_t>(st.st_ctime) >= comparison_time.ToTimeT()) ++file_count; } closedir(dir); @@ -762,7 +762,7 @@ void MemoryMappedFile::CloseHandles() { bool HasFileBeenModifiedSince(const FileEnumerator::FindInfo& find_info, const base::Time& cutoff_time) { - return find_info.stat.st_mtime >= cutoff_time.ToTimeT(); + return static_cast<time_t>(find_info.stat.st_mtime) >= cutoff_time.ToTimeT(); } bool NormalizeFilePath(const FilePath& path, FilePath* normalized_path) { |