Skip to content

Commit 2c993d0

Browse files
authored
Merge pull request #40137 from compnerd/ints-for-all
SIL: correct the definition of `SwiftInt`
2 parents 9514f87 + 1eade54 commit 2c993d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/SIL/SILBridging.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ typedef enum {
141141
MayHaveSideEffectsBehavior
142142
} BridgedMemoryBehavior;
143143

144-
typedef long SwiftInt;
144+
145+
typedef intptr_t SwiftInt;
145146

146147
void registerBridgedClass(BridgedStringRef className, SwiftMetatype metatype);
147148

0 commit comments

Comments
 (0)