Skip to content

Commit 836b475

Browse files
samding01phausler
authored andcommitted
add support to s390x (#1118)
1 parent e722d1a commit 836b475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSRange.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ extension NSRange : Hashable {
126126
public var hashValue: Int {
127127
#if arch(i386) || arch(arm)
128128
return Int(bitPattern: (UInt(bitPattern: location) | (UInt(bitPattern: length) << 16)))
129-
#elseif arch(x86_64) || arch(arm64)
129+
#elseif arch(x86_64) || arch(arm64) || arch(s390x)
130130
return Int(bitPattern: (UInt(bitPattern: location) | (UInt(bitPattern: length) << 32)))
131131
#endif
132132
}

0 commit comments

Comments
 (0)