Skip to content
Snippets Groups Projects
Commit 852cff04 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

fix monotime test mocking on 32-bit systems

parent 61ce6dcb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment