From 1b0b4be2877840dd3899562ddbebc7631d523f7a Mon Sep 17 00:00:00 2001 From: ka-weihe Date: Mon, 29 Jun 2020 08:23:51 +0200 Subject: [PATCH] atof: fix is_space (#5555) --- vlib/strconv/atof.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/strconv/atof.v b/vlib/strconv/atof.v index 4b997a4176..34619b6d9e 100644 --- a/vlib/strconv/atof.v +++ b/vlib/strconv/atof.v @@ -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 {