diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 19:38:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 19:41:18 -0400 |
commit | feefbc48a39019acd7646bc6835a70963c8b65a2 (patch) | |
tree | 70f744361e267277ace12098737716a20a8e3b45 | |
parent | 8b2d6a7f282398aafc8449a625441cc87bbd6c9e (diff) | |
download | zix-feefbc48a39019acd7646bc6835a70963c8b65a2.tar.gz zix-feefbc48a39019acd7646bc6835a70963c8b65a2.tar.bz2 zix-feefbc48a39019acd7646bc6835a70963c8b65a2.zip |
Fix conversion warning on 32-bit ARM
-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) { |