diff options
Diffstat (limited to 'src/time_ops.h')
-rw-r--r-- | src/time_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time_ops.h b/src/time_ops.h index 9b883a4..3614cf2 100644 --- a/src/time_ops.h +++ b/src/time_ops.h @@ -61,7 +61,7 @@ do \ { \ int64_t tmp_time; \ - tmp_time = (c) * (int64_t) ((tvp)->tv_sec * SEC_TO_##prefix##SEC + \ + tmp_time = (c) * (int64_t) ((int64_t) (tvp)->tv_sec * SEC_TO_##prefix##SEC + \ (int64_t) (tvp)->tv_##prefix##sec); \ (result)->tv_##prefix##sec = tmp_time % SEC_TO_##prefix##SEC; \ (result)->tv_sec = (tmp_time - (result)->tv_##prefix##sec) / \ |