Skip to content

Commit d0048cc

Browse files
committed
stdlib: android does not support FP80
Correct the maximal floating point width. Although technically, Android could support FP128 on AArch64, Swift does not currently support FP128. For now, ensure that we use FP64 on Android.
1 parent 99356cd commit d0048cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Policy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public typealias StringLiteralType = String
100100
//===----------------------------------------------------------------------===//
101101
// Default types for unconstrained number literals
102102
//===----------------------------------------------------------------------===//
103-
#if !os(Windows) && (arch(i386) || arch(x86_64))
103+
#if !(os(Windows) || os(Android)) && (arch(i386) || arch(x86_64))
104104
public typealias _MaxBuiltinFloatType = Builtin.FPIEEE80
105105
#else
106106
public typealias _MaxBuiltinFloatType = Builtin.FPIEEE64

0 commit comments

Comments
 (0)