diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-07-21 14:05:29 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-21 14:05:29 +0200 |
commit | 852cff043b6f6561beb8021f3e8a05a327482d9a (patch) | |
tree | 1897074ef9d52e59003c04f6c9d0f352c0d75ffe /src/common/compat_time.c | |
parent | 61ce6dcb40df9aee9f6557ebee0a306aecb312ee (diff) | |
download | tor-852cff043b6f6561beb8021f3e8a05a327482d9a.tar.gz tor-852cff043b6f6561beb8021f3e8a05a327482d9a.zip |
fix monotime test mocking on 32-bit systems
Diffstat (limited to 'src/common/compat_time.c')
-rw-r--r-- | src/common/compat_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat_time.c b/src/common/compat_time.c index 52abfeba21..58916825cb 100644 --- a/src/common/compat_time.c +++ b/src/common/compat_time.c @@ -331,8 +331,8 @@ monotime_get(monotime_t *out) { #ifdef TOR_UNIT_TESTS if (monotime_mocking_enabled) { - out->ts_.tv_sec = mock_time_nsec / ONE_BILLION; - out->ts_.tv_nsec = mock_time_nsec % ONE_BILLION; + out->ts_.tv_sec = (time_t) (mock_time_nsec / ONE_BILLION); + out->ts_.tv_nsec = (int) (mock_time_nsec % ONE_BILLION); return; } #endif |