Skip to content

Commit 7b8fc50

Browse files
authored
[Test] Fix integer overflow in layout_string_witnesses_dynamic.swift on 32 bit targets (#70290)
rdar://119268608
1 parent f31291e commit 7b8fc50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Interpreter/Inputs/layout_string_witnesses_types.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,10 @@ public struct TupleLargeAlignment<T> {
569569
let x: AnyObject? = nil
570570
let x1: AnyObject? = nil
571571
let x2: AnyObject? = nil
572-
let x3: (T, SIMD4<Int>)
572+
let x3: (T, SIMD4<Int64>)
573573

574574
public init(_ t: T) {
575-
self.x3 = (t, .init(Int(Int32.max) + 32, Int(Int32.max) + 32, Int(Int32.max) + 32, Int(Int32.max) + 32))
575+
self.x3 = (t, .init(Int64(Int32.max) + 32, Int64(Int32.max) + 32, Int64(Int32.max) + 32, Int64(Int32.max) + 32))
576576
}
577577
}
578578

0 commit comments

Comments
 (0)