Skip to content

Commit be67f51

Browse files
committed
Fix wrong time_t used in function
This function doesn't interoperate with any system functions that use the system time_t, but rather only works with the git_time_t type in libgit2, which could be a different width than the system one. Fixes a compile warning.
1 parent 6c78fd0 commit be67f51

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)