Commit 3b2fa0fb by Edward Thomson

submodule: explicitly cast to the teensy time value

parent b2ca8d9c
...@@ -778,9 +778,9 @@ int git_submodule_add_to_index(git_submodule *sm, int write_index) ...@@ -778,9 +778,9 @@ int git_submodule_add_to_index(git_submodule *sm, int write_index)
if ((error = git_commit_lookup(&head, sm_repo, &sm->wd_oid)) < 0) if ((error = git_commit_lookup(&head, sm_repo, &sm->wd_oid)) < 0)
goto cleanup; goto cleanup;
entry.ctime.seconds = git_commit_time(head); entry.ctime.seconds = (int32_t)git_commit_time(head);
entry.ctime.nanoseconds = 0; entry.ctime.nanoseconds = 0;
entry.mtime.seconds = git_commit_time(head); entry.mtime.seconds = (int32_t)git_commit_time(head);
entry.mtime.nanoseconds = 0; entry.mtime.nanoseconds = 0;
git_commit_free(head); git_commit_free(head);
......
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