Skip to content

Commit ed62fb1

Browse files
committed
Merge pull request godotengine#112897 from PixelDough/mono-fix-SplitFloats
Fix StringExtensions.SplitFloats incorrect float parsing
2 parents 9c56102 + b5591bf commit ed62fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ public static float[] SplitFloats(this string instance, string divisor, bool all
15391539
if (end < 0)
15401540
end = len;
15411541
if (allowEmpty || end > from)
1542-
ret.Add(float.Parse(instance.AsSpan(from), CultureInfo.InvariantCulture));
1542+
ret.Add(float.Parse(instance.AsSpan(from, end - from), CultureInfo.InvariantCulture));
15431543
if (end == len)
15441544
break;
15451545

0 commit comments

Comments
 (0)