From 3556a82a2ab3280ef6282de5d7f97248929a517f Mon Sep 17 00:00:00 2001 From: Leo Yang Date: Mon, 9 Feb 2015 17:35:25 -0500 Subject: [PATCH] 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. --- src/fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;