Merge pull request #10521 from RandomShaper/fix-double-parsing-2.1
Fix tokenization of doubles (2.1)
This commit is contained in:
commit
3e397586bb
1 changed files with 1 additions and 3 deletions
|
@ -324,6 +324,7 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri
|
|||
is_float = true;
|
||||
} else if (c == 'e') {
|
||||
reading = READING_EXP;
|
||||
is_float = true;
|
||||
} else {
|
||||
reading = READING_DONE;
|
||||
}
|
||||
|
@ -335,7 +336,6 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri
|
|||
|
||||
} else if (c == 'e') {
|
||||
reading = READING_EXP;
|
||||
|
||||
} else {
|
||||
reading = READING_DONE;
|
||||
}
|
||||
|
@ -347,8 +347,6 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri
|
|||
exp_beg = true;
|
||||
|
||||
} else if ((c == '-' || c == '+') && !exp_sign && !exp_beg) {
|
||||
if (c == '-')
|
||||
is_float = true;
|
||||
exp_sign = true;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue