Skip to content

Commit fc63b85

Browse files
Merge branch 'master' into feature/polymorphic-ports-abi-compatible
2 parents 594e24c + f1c2b8e commit fc63b85

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/script_parser.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,7 @@ class ScriptParser
225225
if(tok.type == TokenType::Real)
226226
{
227227
advance();
228-
double val = 0;
229-
const char* first = tok.text.data();
230-
const char* last = first + tok.text.size();
231-
std::from_chars(first, last, val);
228+
double val = convertFromString<double>(tok.text);
232229
return std::make_shared<Ast::ExprLiteral>(Any(val));
233230
}
234231
// String literal

0 commit comments

Comments
 (0)