diff options
Diffstat (limited to 'include/zix')
-rw-r--r-- | include/zix/sem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zix/sem.h b/include/zix/sem.h index fd85aab..118f586 100644 --- a/include/zix/sem.h +++ b/include/zix/sem.h @@ -298,8 +298,8 @@ zix_sem_timed_wait(ZixSem* ZIX_NONNULL sem, return ZIX_STATUS_ERROR; } - ts.tv_sec += seconds; - ts.tv_nsec += nanoseconds; + ts.tv_sec += (time_t)seconds; + ts.tv_nsec += (long)nanoseconds; int r = 0; while ((r = sem_timedwait(&sem->sem, &ts)) && errno == EINTR) { |