From 6a10cfdc304dee49549af638836d8a1b64326958 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 30 Jul 2025 23:15:14 +0100 Subject: [PATCH] Fix typo --- core/sync/extended.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sync/extended.odin b/core/sync/extended.odin index 199407428..f1d8348ee 100644 --- a/core/sync/extended.odin +++ b/core/sync/extended.odin @@ -50,7 +50,7 @@ wait_group_add :: proc "contextless" (wg: ^Wait_Group, delta: int) { switch counter := atomic_load(&wg.counter); counter { case counter < 0: panic_contextless("sync.Wait_Group negative counter") - case if wg.counter == 0: + case wg.counter == 0: cond_broadcast(&wg.cond) if atomic_load(&wg.counter) != 0 { panic_contextless("sync.Wait_Group misuse: sync.wait_group_add called concurrently with sync.wait_group_wait")