diff --git a/core/math/expression.cpp b/core/math/expression.cpp index 655098376ca..88b72cc2ec4 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -1174,7 +1174,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 == '_') {