Skip to content

Commit c6874e0

Browse files
committed
Parse span not string
1 parent a32d96d commit c6874e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BigReal/BigReal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ public static BigReal Parse(string input, NumberStyles style, IFormatProvider? p
882882
BigReal exponent = Zero;
883883
if (exponentPos > 0) {
884884
// Get exponent
885-
exponent = Parse(input[(exponentPos + 1)..], style, provider);
885+
exponent = Parse(input.AsSpan((exponentPos + 1)..), style, provider);
886886
// Remove exponent
887887
input = input[..exponentPos];
888888
}

0 commit comments

Comments
 (0)