mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
atof: fix is_space (#5555)
This commit is contained in:
@ -149,7 +149,7 @@ fn is_digit(x byte) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn is_space(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 {
|
fn is_exp(x byte) bool {
|
||||||
|
Reference in New Issue
Block a user