Skip to content

Commit ce9c0d8

Browse files
authored
Fix Linux reflection bug in tuple metadata alignment (#68)
* Update EnumReflection.swift * Update EnumReflection.swift
1 parent 241301b commit ce9c0d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CasePaths/EnumReflection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ extension TupleMetadata {
518518

519519
var type: Any.Type { self.ptr.load(as: Any.Type.self) }
520520

521-
var offset: UInt { self.ptr.load(fromByteOffset: pointerSize, as: UInt.self) }
521+
var offset: UInt32 { self.ptr.load(fromByteOffset: pointerSize, as: UInt32.self) }
522522

523523
static func == (lhs: Element, rhs: Element) -> Bool {
524524
lhs.type == rhs.type && lhs.offset == rhs.offset

0 commit comments

Comments
 (0)