Skip to content

Commit

Permalink
Merge pull request #1435 from Eskils/feature/fix-warning-in-ax-extens…
Browse files Browse the repository at this point in the history
…ion-2

Silence warning in AXExtension
  • Loading branch information
rxhanson authored Aug 9, 2024
2 parents aec69ed + 2bda1c5 commit 20e73c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rectangle/Utilities/AXExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ extension AXValue {

static func from<T>(value: T, type: AXValueType) -> AXValue? {
var value = value
return AXValueCreate(type, &value)
return withUnsafePointer(to: &value) { valuePointer in
AXValueCreate(type, valuePointer)
}
}
}

Expand Down

0 comments on commit 20e73c2

Please sign in to comment.