diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2020-07-24 14:07:57 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2020-07-27 18:38:53 -0400 |
commit | 56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e (patch) | |
tree | a332137aefabdfc21f7f5f317096a1895e9f1dc9 /core/math | |
parent | 4e825539e590c6ce06e54fbb05571efce7fb181c (diff) | |
download | redot-engine-56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e.tar.gz |
Make all String float conversion methods be 64-bit
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/expression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/expression.cpp b/core/math/expression.cpp index 13a49feb6b..735a30f6cc 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -1062,7 +1062,7 @@ Error Expression::_get_token(Token &r_token) { r_token.type = TK_CONSTANT; if (is_float) { - r_token.value = num.to_double(); + r_token.value = num.to_float(); } else { r_token.value = num.to_int(); } |