summaryrefslogtreecommitdiff
path: root/src/lib/wallclock
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-03 11:00:18 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-03 11:00:18 -0400
commit02a4442524d84ea7edf6e3f136017faa73452d92 (patch)
treeb7870d99b8b95f63b11cb29e0ac1a435bd673c95 /src/lib/wallclock
parentd5a3bb960d41873ccfde0bbdb4adfb762528069e (diff)
downloadtor-02a4442524d84ea7edf6e3f136017faa73452d92.tar.gz
tor-02a4442524d84ea7edf6e3f136017faa73452d92.zip
Fix up some windows compilation issues.
These were mostly cases where our previous macros had been casting, and the values that we were trying to printf were not in fact uint64_t.
Diffstat (limited to 'src/lib/wallclock')
-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);
}