From 56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Fri, 24 Jul 2020 14:07:57 -0400 Subject: Make all String float conversion methods be 64-bit --- tests/test_math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_math.cpp') diff --git a/tests/test_math.cpp b/tests/test_math.cpp index 5f84bad4e9..84a85be2f6 100644 --- a/tests/test_math.cpp +++ b/tests/test_math.cpp @@ -242,7 +242,7 @@ class GetClassAndNamespace { if (code[idx] == '-' || (code[idx] >= '0' && code[idx] <= '9')) { //a number const CharType *rptr; - double number = String::to_double(&code[idx], &rptr); + double number = String::to_float(&code[idx], &rptr); idx += (rptr - &code[idx]); value = number; return TK_NUMBER; -- cgit v1.2.3