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.
This commit is contained in:
Leo Yang 2015-02-09 17:35:25 -05:00
parent 4d6f55acce
commit 3556a82a2a

View File

@ -174,7 +174,7 @@ int git_futils_readbuffer_updated(
*/ */
if (size && *size != (size_t)st.st_size) if (size && *size != (size_t)st.st_size)
changed = true; changed = true;
if (mtime && *mtime != st.st_mtime) if (mtime && *mtime != (time_t)st.st_mtime)
changed = true; changed = true;
if (!size && !mtime) if (!size && !mtime)
changed = true; changed = true;