summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-07-14 08:30:16 -0400
committerGitHub <noreply@github.com>2021-07-14 08:30:16 -0400
commite5649e1075801303cbdf2aabc2c164cebcbd783e (patch)
tree8ed39de306093b1702a9250d941adaf3be5f8fe0
parent97cd165e21de4b44cf203dd3b660926a460705f4 (diff)
parentbe67f512d821d0bcc4f05a3f58e35d4146de5e7d (diff)
downloadlibgit2-e5649e1075801303cbdf2aabc2c164cebcbd783e.tar.gz
Merge pull request #5938 from NattyNarwhal/time-type-mismatch
Fix wrong time_t used in function
-rw-r--r--src/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.c b/src/date.c
index f8594ed4e..71bf631a0 100644
--- a/src/date.c
+++ b/src/date.c
@@ -204,7 +204,7 @@ static int is_date(int year, int month, int day, struct tm *now_tm, time_t now,
if (month > 0 && month < 13 && day > 0 && day < 32) {
struct tm check = *tm;
struct tm *r = (now_tm ? &check : tm);
- time_t specified;
+ git_time_t specified;
r->tm_mon = month - 1;
r->tm_mday = day;