We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114343a commit d013a2bCopy full SHA for d013a2b
Sources/Floating Point Conversion.swift
@@ -49,7 +49,7 @@ extension BigUInt {
49
guard integer.sign == .plus else { return nil }
50
assert(integer.floatingPointClass == .positiveNormal)
51
52
- #if os(Linux)
+ #if os(Linux) || os(Windows)
53
// `Decimal._mantissa` has an internal access level on linux, and it might get
54
// deprecated in the future, so keeping the string implementation around for now.
55
let significand = BigUInt("\(integer.significand)")!
@@ -163,7 +163,7 @@ public extension Decimal {
163
}
164
#endif
165
166
-#if canImport(Foundation) && !os(Linux)
+#if canImport(Foundation) && !(os(Linux) || os(Windows))
167
private extension Decimal {
168
var mantissaParts: [UInt16] {
169
[
0 commit comments