Skip to content

Commit 95fa602

Browse files
committed
Update UUID API
1 parent aefde05 commit 95fa602

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/OpenBox/OBUUID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ OBUUID OBUUIDInitFromNSUUID(NSUUID *uuid) OB_SWIFT_NAME(OBUUID.init(uuid:));
2525

2626
OB_EXPORT
2727
OB_REFINED_FOR_SWIFT
28-
OBUUID OBUUIDInitFromHash(uint64_t words0, uint64_t words1, uint32_t words2) OB_SWIFT_NAME(OBUUID.init(hash:_:_:));
28+
OBUUID OBUUIDInitFromHash(uint64_t words0, uint64_t words1, uint32_t words2) OB_SWIFT_NAME(OBUUID.init(_:_:_:));
2929

3030
OB_EXTERN_C_END
3131

Tests/OpenBoxCompatibilityTests/UUIDTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct UUIDTests {
8383
),
8484
])
8585
func strongHashUUID(words: (UInt32, UInt32, UInt32, UInt32, UInt32), expectedBytes: [UInt8]) {
86-
let id: OBUUID = OBUUID(hash: UInt64(words.0) | UInt64(words.1) &<< 32, UInt64(words.2) | UInt64(words.3) &<< 32, words.4)
86+
let id: OBUUID = OBUUID(UInt64(words.0) | UInt64(words.1) &<< 32, UInt64(words.2) | UInt64(words.3) &<< 32, words.4)
8787
let bytes = id.bytes
8888
#expect(bytes.0 == expectedBytes[0])
8989
#expect(bytes.1 == expectedBytes[1])

0 commit comments

Comments
 (0)