Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b2fa0f

Browse files
author
Edward Thomson
committed
submodule: explicitly cast to the teensy time value
1 parent b2ca8d9 commit 3b2fa0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/submodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,9 @@ int git_submodule_add_to_index(git_submodule *sm, int write_index)
778778
if ((error = git_commit_lookup(&head, sm_repo, &sm->wd_oid)) < 0)
779779
goto cleanup;
780780

781-
entry.ctime.seconds = git_commit_time(head);
781+
entry.ctime.seconds = (int32_t)git_commit_time(head);
782782
entry.ctime.nanoseconds = 0;
783-
entry.mtime.seconds = git_commit_time(head);
783+
entry.mtime.seconds = (int32_t)git_commit_time(head);
784784
entry.mtime.nanoseconds = 0;
785785

786786
git_commit_free(head);

0 commit comments

Comments
 (0)