Commit f25bb508 by Edward Thomson

index test: cast times explicitly

Cast actual filesystem data to the int32_t that index entries store.
parent 1d4ddb8e
...@@ -126,8 +126,8 @@ static void setup_race(void) ...@@ -126,8 +126,8 @@ static void setup_race(void)
cl_assert(entry = (git_index_entry *)git_index_get_bypath(index, "A", 0)); cl_assert(entry = (git_index_entry *)git_index_get_bypath(index, "A", 0));
/* force a race */ /* force a race */
entry->mtime.seconds = st.st_mtime; entry->mtime.seconds = (int32_t)st.st_mtime;
entry->mtime.nanoseconds = st.st_mtime_nsec; entry->mtime.nanoseconds = (int32_t)st.st_mtime_nsec;
git_buf_dispose(&path); git_buf_dispose(&path);
} }
......
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