summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Yang <lyang@topologyinc.com>2015-02-09 17:35:25 -0500
committerLeo Yang <lyang@topologyinc.com>2015-02-12 16:38:55 -0500
commit3556a82a2ab3280ef6282de5d7f97248929a517f (patch)
treeae7a96d2372f2b86981521305b2c9f26e4feec68
parent4d6f55acce14eeec55729e55335635375e9026df (diff)
downloadlibgit2-3556a82a2ab3280ef6282de5d7f97248929a517f.tar.gz
Fix build warning on Android
Always do a time_t cast on st_mtime. st_mtime on Android is not the type of time_t but has the same meaning which is the number of seconds past epoch.
-rw-r--r--src/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c
index bd9d27c7a..68c2e8938 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -174,7 +174,7 @@ int git_futils_readbuffer_updated(
*/
if (size && *size != (size_t)st.st_size)
changed = true;
- if (mtime && *mtime != st.st_mtime)
+ if (mtime && *mtime != (time_t)st.st_mtime)
changed = true;
if (!size && !mtime)
changed = true;