mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
fix monotime test mocking on 32-bit systems
This commit is contained in:
parent
61ce6dcb40
commit
852cff043b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user