mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Once more, 32-bit fixes on monotime mocking
This commit is contained in:
parent
9c87869dde
commit
1d0775684d
@ -347,8 +347,8 @@ monotime_coarse_get(monotime_coarse_t *out)
|
||||
{
|
||||
#ifdef TOR_UNIT_TESTS
|
||||
if (monotime_mocking_enabled) {
|
||||
out->ts_.tv_sec = mock_time_nsec_coarse / ONE_BILLION;
|
||||
out->ts_.tv_nsec = mock_time_nsec_coarse % ONE_BILLION;
|
||||
out->ts_.tv_sec = (time_t) (mock_time_nsec_coarse / ONE_BILLION);
|
||||
out->ts_.tv_nsec = (int) (mock_time_nsec_coarse % ONE_BILLION);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user