summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-08-30 09:02:26 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-08-30 09:02:49 -0400
commited0ea96ed9ab19c0757a7b81619ace39e71a22c5 (patch)
treeb0b6523a8eafd522af1969e5cf341c56d0da792c
parentf93beebcba473dc4c60fa25272b805f04ef0541b (diff)
downloadlibgit2-ethomson/fixups.tar.gz
date: promote before multiplyethomson/fixups
-rw-r--r--src/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.c b/src/date.c
index 71bf631a0..2297ee66c 100644
--- a/src/date.c
+++ b/src/date.c
@@ -722,7 +722,7 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, struct tm
while (tl->type) {
size_t len = strlen(tl->type);
if (match_string(date, tl->type) >= len-1) {
- update_tm(tm, now, tl->length * *num);
+ update_tm(tm, now, tl->length * (unsigned long)*num);
*num = 0;
*touched = 1;
return end;