Skip to content

Commit

Permalink
Fix compareValues API implementation (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye authored Feb 21, 2025
1 parent 0938f48 commit 90da6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OpenGraph/Runtime/CompareValues.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public func compareValues<Value>(_ lhs: Value, _ rhs: Value, mode: OGComparisonM
public func compareValues<Value>(_ lhs: Value, _ rhs: Value, options: OGComparisonOptions) -> Bool {
withUnsafePointer(to: lhs) { p1 in
withUnsafePointer(to: rhs) { p2 in
OGCompareValues(lhs: p1, rhs: p2, type: Value.self, options: options)
OGCompareValues(lhs: p1, rhs: p2, type: Value.self, options: .init(rawValue: options.rawValue | 0x100))
}
}
}
Expand Down

0 comments on commit 90da6a6

Please sign in to comment.