Skip to content

Commit ed0ea96

Browse files
committed
date: promote before multiply
1 parent f93beeb commit ed0ea96

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
@@ -722,7 +722,7 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm
722722
while (tl->type) {
723723
size_t len = strlen(tl->type);
724724
if (match_string(date, tl->type) >= len-1) {
725-
update_tm(tm, now, tl->length * *num);
725+
update_tm(tm, now, tl->length * (unsigned long)*num);
726726
*num = 0;
727727
*touched = 1;
728728
return end;

0 commit comments

Comments
 (0)