File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,11 @@ extension BigUInt {
4949 guard integer. sign == . plus else { return nil }
5050 assert ( integer. floatingPointClass == . positiveNormal)
5151
52- // keeping around in case the `Decimal._mantissa` property gets deprecated in the future.
53- // let significand = BigUInt("\(integer.significand)")!
52+ #if os(Linux)
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) " ) !
56+ #else
5457 let significand = {
5558 var start = BigUInt ( 0 )
5659 for (place, value) in integer. significand. mantissaParts. enumerated ( ) {
@@ -59,6 +62,7 @@ extension BigUInt {
5962 }
6063 return start
6164 } ( )
65+ #endif
6266 let exponent = BigUInt ( 10 ) . power ( integer. exponent)
6367
6468 self = significand * exponent
You can’t perform that action at this time.
0 commit comments