diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-01-25 14:06:15 +0200 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-01-25 14:06:15 +0200 |
commit | 0c09753cf50bbd9639c50af61b1cedf50da5f1c6 (patch) | |
tree | d062cc1b638b754092584257ee0cf1bf7e289b5c | |
parent | 0f9d15493d5d8ad4353dd7beed52c9567334f6e5 (diff) | |
download | libgit2-0c09753cf50bbd9639c50af61b1cedf50da5f1c6.tar.gz |
Fix the build when defining USE_NSEC
-rw-r--r-- | src/index.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.h b/src/index.h index a64c645b3..8b9b49498 100644 --- a/src/index.h +++ b/src/index.h @@ -92,7 +92,7 @@ GIT_INLINE(bool) git_index_entry_newer_than_index( /* If the timestamp is the same or newer than the index, it's racy */ #if defined(GIT_USE_NSEC) - if ((int32_t)index->stamp.tv_sec < entry->mtime.seconds) + if ((int32_t)index->stamp.mtime.tv_sec < entry->mtime.seconds) return true; else if ((int32_t)index->stamp.mtime.tv_sec > entry->mtime.seconds) return false; |