Skip to content

Commit 4aaee48

Browse files
authored
Merge pull request #38460 from glessard/absurd-allocations
[test] ensure allocation test from #38424 also runs on 32-bit architectures
2 parents 155b2fc + 04d9473 commit 4aaee48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/UnsafeRawPointer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ UnsafeMutableRawPointerExtraTestSuite.test("absurd.allocation.misaligned") {
238238

239239
UnsafeMutableRawPointerExtraTestSuite.test("absurd.allocation.gargantuan") {
240240
expectCrashLater()
241-
let mustFail = UnsafeMutableRawPointer.allocate(byteCount: 400000000000000000,
241+
let mustFail = UnsafeMutableRawPointer.allocate(byteCount: Int.max,
242242
alignment: 0)
243243
expectUnreachable()
244244
}

0 commit comments

Comments
 (0)