Browse Source

Update Parser.cs

Flouttre 1 year ago
parent
commit
f1e3d8857a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/CodeAnalysis/Syntax/Parser.cs

+ 1 - 1
src/Lua/CodeAnalysis/Syntax/Parser.cs

@@ -1010,7 +1010,7 @@ public ref struct Parser
         }
         }
         else
         else
         {
         {
-            return double.Parse(text);
+            return double.Parse(text.ToString(), CultureInfo.InvariantCulture);
         }
         }
     }
     }
 }
 }