Skip to content

Commit 720e08f

Browse files
committed
Slightly different fix to semaphore.c error.
1 parent b8f1441 commit 720e08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/semaphore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ _dispatch_group_create_with_count(uint32_t n)
158158
dg->do_targetq = _dispatch_get_default_queue(false);
159159
if (n) {
160160
os_atomic_store2o(dg, dg_bits,
161-
-n * (uint32_t)DISPATCH_GROUP_VALUE_INTERVAL, relaxed);
161+
(uint32_t)-n * DISPATCH_GROUP_VALUE_INTERVAL, relaxed);
162162
os_atomic_store2o(dg, do_ref_cnt, 1, relaxed); // <rdar://22318411>
163163
}
164164
return dg;

0 commit comments

Comments
 (0)