Commit 3556a82a by Leo Yang

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.
parent 4d6f55ac
...@@ -174,7 +174,7 @@ int git_futils_readbuffer_updated( ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment