From 3b2fa0fb36da71e7e00f5b97cf053920126f4cb1 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 12 Feb 2016 10:25:50 -0800 Subject: [PATCH] submodule: explicitly cast to the teensy time value --- src/submodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/submodule.c b/src/submodule.c index 6ec4c53e1..cdae3dddf 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -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) goto cleanup; - entry.ctime.seconds = git_commit_time(head); + entry.ctime.seconds = (int32_t)git_commit_time(head); entry.ctime.nanoseconds = 0; - entry.mtime.seconds = git_commit_time(head); + entry.mtime.seconds = (int32_t)git_commit_time(head); entry.mtime.nanoseconds = 0; git_commit_free(head);