Skip to content

Commit e5649e1

Browse files
authored
Merge pull request libgit2#5938 from NattyNarwhal/time-type-mismatch
Fix wrong time_t used in function
2 parents 97cd165 + be67f51 commit e5649e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static int is_date(int year, int month, int day, struct tm *now_tm, time_t now,
204204
if (month > 0 && month < 13 && day > 0 && day < 32) {
205205
struct tm check = *tm;
206206
struct tm *r = (now_tm ? &check : tm);
207-
time_t specified;
207+
git_time_t specified;
208208

209209
r->tm_mon = month - 1;
210210
r->tm_mday = day;

0 commit comments

Comments
 (0)