summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/libc/time/mktime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/mktime.c b/newlib/libc/time/mktime.c
index 9bcef3268..02032599a 100644
--- a/newlib/libc/time/mktime.c
+++ b/newlib/libc/time/mktime.c
@@ -188,7 +188,7 @@ mktime (struct tm *tim_p)
}
/* compute total seconds */
- tim += (days * _SEC_IN_DAY);
+ tim += (time_t)days * _SEC_IN_DAY;
TZ_LOCK;