Skip to content

Commit c2e785b

Browse files
kateinoigakukunAnka
authored andcommitted
[Synchronization] Fix Wasm mutex build
This change fixes the following build error happening on Wasm: ``` error: referencing instance method '_wait(expected:)' on 'Atomic' requires the types '_MutexHandle.State' and 'UInt32' be equivalent ```
1 parent 6a862d2 commit c2e785b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Synchronization/Mutex/WasmImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal func _swift_stdlib_wait(
2323
@_extern(c, "llvm.wasm32.memory.atomic.notify")
2424
internal func _swift_stdlib_wake(on: UnsafePointer<UInt32>, count: UInt32)
2525

26-
extension Atomic where Value == UInt32 {
26+
extension Atomic where Value == _MutexHandle.State {
2727
internal borrowing func _wait(expected: _MutexHandle.State) {
2828
_swift_stdlib_wait(
2929
on: .init(_rawAddress),

0 commit comments

Comments
 (0)