Browse Source

Replace bigint.Negate because it doesn't exist in Xamarin

netstandard
Frank A. Krueger 10 years ago
parent
commit
ffe7cd71f8
  1. 3
      src/FSharp/BigIntegerExtensions.fs

3
src/FSharp/BigIntegerExtensions.fs

@ -27,8 +27,7 @@ module BigIntegerExtensions =
raise <| FormatException ("The value could not be parsed.") raise <| FormatException ("The value could not be parsed.")
if str.[0] = '-' then if str.[0] = '-' then
parseImpl str len 0I 1 -(parseImpl str len 0I 1)
|> bigint.Negate
else else
parseImpl str len 0I 0 parseImpl str len 0I 0

Loading…
Cancel
Save