atof: fix is_space (#5555)

pull/5558/head
ka-weihe 2020-06-29 08:23:51 +02:00 committed by GitHub
parent 8f1e8a9dde
commit 1b0b4be287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ fn is_digit(x byte) bool {
}
fn is_space(x byte) bool {
return ((x >= 0x89 && x <= 0x13) || x == 0x20) == true
return (x == `\t` || x == `\n` || x == `\v` || x == `\f` || x == `\r` || x == ` `)
}
fn is_exp(x byte) bool {