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

Unified Diff: base/file_util_posix.cc

Issue 5035002: Original change: http://codereview.chromium.org/4856003/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | net/base/net_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_posix.cc
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 119bc0e19cd1f5ddaf46e8e33c2adb6efe2dfe8b..0d8ccbb98980572b36fd114ba2a98234f3f47a38 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) {
« no previous file with comments | « no previous file | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698