summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-20 23:52:50 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-25 22:36:44 +0000
commitf25bb508cf7fd4da1427544fb48fba12c3c76e1c (patch)
treeff79352724d46a4c0decebf6f171df46a324ecb3
parent1d4ddb8ecf308b8b913dfbc5d6abb9996779808c (diff)
downloadlibgit2-f25bb508cf7fd4da1427544fb48fba12c3c76e1c.tar.gz
index test: cast times explicitly
Cast actual filesystem data to the int32_t that index entries store.
-rw-r--r--tests/index/racy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/index/racy.c b/tests/index/racy.c
index e08deaea3..88b37e10d 100644
--- a/tests/index/racy.c
+++ b/tests/index/racy.c
@@ -126,8 +126,8 @@ static void setup_race(void)
cl_assert(entry = (git_index_entry *)git_index_get_bypath(index, "A", 0));
/* force a race */
- entry->mtime.seconds = st.st_mtime;
- entry->mtime.nanoseconds = st.st_mtime_nsec;
+ entry->mtime.seconds = (int32_t)st.st_mtime;
+ entry->mtime.nanoseconds = (int32_t)st.st_mtime_nsec;
git_buf_dispose(&path);
}