summaryrefslogtreecommitdiff
path: root/src/lib/wallclock/tm_cvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/wallclock/tm_cvt.c')
-rw-r--r--src/lib/wallclock/tm_cvt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/wallclock/tm_cvt.c b/src/lib/wallclock/tm_cvt.c
index 0a1a1cd438..31d929e635 100644
--- a/src/lib/wallclock/tm_cvt.c
+++ b/src/lib/wallclock/tm_cvt.c
@@ -102,7 +102,7 @@ correct_tm(int islocal, const time_t *timep, struct tm *resultbuf,
if (err_out) {
tor_asprintf(err_out, "%s(%"PRId64") failed with error %s: %s",
islocal?"localtime":"gmtime",
- timep?(*timep):0,
+ timep?((int64_t)*timep):0,
strerror(errno),
outcome);
}