summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/script_class_parser.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-28 01:27:34 +0200
committerGitHub <noreply@github.com>2020-07-28 01:27:34 +0200
commita6916d1f179f760f015f385c01729d205af97abe (patch)
tree50d664500e5ce164ed8498f34e84aef35678f225 /modules/mono/editor/script_class_parser.cpp
parent932b75e2477dd97775b5b29639c514e091a83cf2 (diff)
parent56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e (diff)
downloadredot-engine-a6916d1f179f760f015f385c01729d205af97abe.tar.gz
Merge pull request #40678 from aaronfranke/string-float64
Make all String float conversion methods be 64-bit
Diffstat (limited to 'modules/mono/editor/script_class_parser.cpp')
-rw-r--r--modules/mono/editor/script_class_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/script_class_parser.cpp b/modules/mono/editor/script_class_parser.cpp
index 012ccd5339..430c82953e 100644
--- a/modules/mono/editor/script_class_parser.cpp
+++ b/modules/mono/editor/script_class_parser.cpp
@@ -235,7 +235,7 @@ ScriptClassParser::Token ScriptClassParser::get_token() {
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;