[arch] Add arm64_32 to the 32-bit platform check (#2625)

On watchOS, the arm64_32 bit architecture restricts software to ILP32 which means integers are 32-bit. This expands our existing 32-bit checks to include arm64_32.
This commit is contained in:
Harish Yerra authored and GitHub committed 2024-01-17 05:34:01 -08:00
1 parent 0e40bcb9ab
commit a0e0c68d71
3 files changed
+3 -3

No files matched your search

@@ -16,7 +16,7 @@ import NIOCore
private let maxOneByteSize = 125
private let maxTwoByteSize = Int(UInt16.max)
#if arch(arm) || arch(i386)
#if arch(arm) || arch(i386) || arch(arm64_32)
// on 32-bit platforms we can't put a whole UInt32 in an Int
private let maxNIOFrameSize = Int(UInt32.max / 2)
#else