Skip to content

Commit e02fbb0

Browse files
committed
fix: fix msvc build error
1 parent 9cf6dc5 commit e02fbb0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/_libs/src/parser/tokenizer.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,10 +1684,8 @@ double precise_xstrtod(const char *str, char **endptr, char decimal, char sci,
16841684
exponent = n;
16851685
}
16861686

1687-
int num_digits = endptr - p;
1688-
16891687
// If no digits after the 'e'/'E', un-consume it.
1690-
if (num_digits == 0)
1688+
if (endptr == p)
16911689
p--;
16921690
else
16931691
p = endptr;

0 commit comments

Comments
 (0)