Commit 0c09753cf50bbd9639c50af61b1cedf50da5f1c6

Marius Ungureanu 2016-01-25T14:06:15

Fix the build when defining USE_NSEC

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/index.h b/src/index.h
index a64c645..8b9b494 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;