From feefbc48a39019acd7646bc6835a70963c8b65a2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 19:38:20 -0400 Subject: Fix conversion warning on 32-bit ARM --- include/zix/sem.h | 4 ++-- 1 file 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) { -- cgit v1.2.1