diff options
| author | Carlos Martín Nieto <carlosmn@github.com> | 2016-02-18 12:31:56 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <carlosmn@github.com> | 2016-02-18 12:31:56 +0100 |
| commit | 5663d4f69124481fcfab2952b5207c7563568388 (patch) | |
| tree | 4925a5c8de2f660f9bf70160aa61970b6ecf81eb /src/submodule.c | |
| parent | 594a5d12d4b9ba3ea542722805ada1028bd1b646 (diff) | |
| parent | 9ce0399c4dad5ff040f2219fa1dd7a4531766414 (diff) | |
| download | libgit2-5663d4f69124481fcfab2952b5207c7563568388.tar.gz | |
Merge pull request #3613 from ethomson/fixups
Remove most of the silly warnings
Diffstat (limited to 'src/submodule.c')
| -rw-r--r-- | src/submodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/submodule.c b/src/submodule.c index 3e55c5676..38db41529 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); |
