Skip to content

Commit 4f84ea8

Browse files
author
Aidan Lee
committed
Fix bad equality symbol
1 parent cc3b85f commit 4f84ea8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hx/thread/CountingSemaphore.apple.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void hx::thread::CountingSemaphore_obj::acquire()
2323
{
2424
hx::AutoGCFreeZone zone;
2525

26-
if (0 != (dispatch_semaphore_wait(impl->semaphore, DISPATCH_TIME_FOREVER)))
26+
if (0 != dispatch_semaphore_wait(impl->semaphore, DISPATCH_TIME_FOREVER))
2727
{
2828
hx::Throw(HX_CSTRING("Failed to wait for semaphore"));
2929
}
@@ -39,7 +39,7 @@ bool hx::thread::CountingSemaphore_obj::tryAcquire(Null<double> timeout)
3939
hx::AutoGCFreeZone zone;
4040

4141
return
42-
(0 = dispatch_semaphore_wait(
42+
(0 == dispatch_semaphore_wait(
4343
impl->semaphore,
4444
dispatch_time(DISPATCH_TIME_NOW, static_cast<int64_t>(timeout.Default(0)) * 1000 * 1000 * 1000)));
4545
}

0 commit comments

Comments
 (0)