Skip to content

Commit e1908d7

Browse files
committed
[android] Force parsing of literal as unsigned.
0xffffffff do not fit into Int, and even if it doesn't, Swift doesn't change the default to be UInt and fit, so we have to be explicit.
1 parent 248d04b commit e1908d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/Runtime.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ Runtime.test("SwiftError layout constants for LLDB") {
560560
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0)
561561
#elseif os(Android)
562562
#if arch(arm)
563-
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0xffffffff)
563+
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0xffffffff as UInt)
564564
#elseif arch(arm64)
565565
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0)
566566
#else

0 commit comments

Comments
 (0)