From ceee280ebe9b5bfed7cd332fe844558dde119faa Mon Sep 17 00:00:00 2001 From: Ben Rimmington Date: Tue, 21 Jan 2020 18:09:39 +0000 Subject: [PATCH] [BigIntTests] Don't use the CLongDouble typealias --- Tests/BigIntTests/BigIntTests.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tests/BigIntTests/BigIntTests.swift b/Tests/BigIntTests/BigIntTests.swift index f565307..2c440c9 100644 --- a/Tests/BigIntTests/BigIntTests.swift +++ b/Tests/BigIntTests/BigIntTests.swift @@ -47,8 +47,11 @@ extension BigInt { final class BigIntTests: XCTestCase { - /// Float64 or Float80 (or Float128) - typealias FloatXX = CLongDouble + #if (arch(i386) || arch(x86_64)) && !os(Windows) && !os(Android) + typealias FloatXX = Float80 + #else + typealias FloatXX = Float64 + #endif /// Python: `bitWidth = 1024; -(2 ** (bitWidth - 1))` static let descriptionInt1024Min: String =