Merge pull request #57620 from Haydoggo/expression-exp-fix
Fix Expression's parsing of positive exponent literals
This commit is contained in:
@ -361,6 +361,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;
|
||||
}
|
||||
@ -397,9 +398,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 {
|
||||
|
||||
Reference in New Issue
Block a user