From d649f6712e6d103da9be58dab66a5cee28361d46 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Feb 2012 21:58:12 +0000 Subject: Fix (and test) semaphore initialisation on OSX. git-svn-id: http://svn.drobilla.net/zix/trunk@65 df6676b4-ccc9-40e5-b5d6-7c4628a128e3 --- zix/sem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zix') 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 -- cgit v1.2.1