Skip to content

Commit 20ade9b

Browse files
committed
core: map UnsignedLong to UInt32
Windows ARM64 is a LLP64 platform, which means that `unsigned long` is a 32-bit value. This was already mapped properly for x86_64, but somehow had missed ARM64. This repairs that which is required for building the standard library.
1 parent ea002ec commit 20ade9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/CTypes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public typealias CUnsignedShort = UInt16
2828
public typealias CUnsignedInt = UInt32
2929

3030
/// The C 'unsigned long' type.
31-
#if os(Windows) && arch(x86_64)
31+
#if os(Windows) && (arch(x86_64) || arch(arm64))
3232
public typealias CUnsignedLong = UInt32
3333
#else
3434
public typealias CUnsignedLong = UInt

0 commit comments

Comments
 (0)