Skip to content

Commit 93ea765

Browse files
committed
ENH: avoid branch in thousands check. Thanks to @cancan101
1 parent 51c72fc commit 93ea765

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/src/parser/tokenizer.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -1897,10 +1897,7 @@ static double xstrtod(const char *str, char **endptr, char decimal,
18971897
p++;
18981898
num_digits++;
18991899

1900-
if (tsep != '\0' && *p == tsep)
1901-
{
1902-
++p;
1903-
}
1900+
p += (tsep != '\0' & *p == tsep);
19041901
}
19051902

19061903
// Process decimal part

0 commit comments

Comments
 (0)