mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-17 23:16:04 +00:00
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:
parent
4d6f55acce
commit
3556a82a2a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user