diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-25 14:35:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 14:35:52 +0100 |
commit | b8f0da7bed976f889a0316981dc419e179f63df8 (patch) | |
tree | 496e9e00c040186c9240a45fd0b388573a98235a /core/math/expression.cpp | |
parent | fe1dfb5fb74f271d1319cd73e34f8bbdc69de20a (diff) | |
parent | ceba2b67614c8393a8f11f5d8a913a5d13c35836 (diff) |
Merge pull request #36529 from akien-mga/expression-int64
Expression: Fix parsing integers as 32-bit
Diffstat (limited to 'core/math/expression.cpp')
-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 1130935567..2728da616e 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -1161,7 +1161,7 @@ Error Expression::_get_token(Token &r_token) { if (is_float) r_token.value = num.to_double(); else - r_token.value = num.to_int(); + r_token.value = num.to_int64(); return OK; } else if ((cchar >= 'A' && cchar <= 'Z') || (cchar >= 'a' && cchar <= 'z') || cchar == '_') { |