Make parser treat all exponent literals as float

(cherry picked from commit 1305ff92f7)
This commit is contained in:
Hayden 2022-02-05 00:14:49 +13:00 committed by Rémi Verschelde
parent 61cd26be28
commit 6d867b6d13
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1050,6 +1050,7 @@ Error Expression::_get_token(Token &r_token) {
is_float = true;
} else if (c == 'e') {
reading = READING_EXP;
is_float = true;
} else {
reading = READING_DONE;
}
@ -1086,9 +1087,6 @@ Error Expression::_get_token(Token &r_token) {
exp_beg = true;
} else if ((c == '-' || c == '+') && !exp_sign && !exp_beg) {
if (c == '-') {
is_float = true;
}
exp_sign = true;
} else {