Commit 3ca91107fcf0097bb6b67e81fd80d6dd612ac7db

Carlos Martín Nieto 2015-02-13T08:30:21

Merge pull request #2897 from leoyanggit/fix_fileop_warning Fix build warning on Android

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/fileops.c b/src/fileops.c
index eddd5a8..73da430 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -177,7 +177,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;