summaryrefslogtreecommitdiffstats
path: root/zix/sem.h
diff options
context:
space:
mode:
Diffstat (limited to 'zix/sem.h')
-rw-r--r--zix/sem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zix/sem.h b/zix/sem.h
index 48115d5..ef01767 100644
--- a/zix/sem.h
+++ b/zix/sem.h
@@ -101,7 +101,7 @@ static inline ZixStatus
zix_sem_init(ZixSem* sem, unsigned initial)
{
return semaphore_create(mach_task_self(), &sem->sem, SYNC_POLICY_FIFO, 0)
- ? ZIX_STATUS_SUCCESS : ZIX_STATUS_ERROR;
+ ? ZIX_STATUS_ERROR : ZIX_STATUS_SUCCESS;
}
static inline void