Skip to content

Commit 589f561

Browse files
committed
chore: rename endptr to tmp_ptr to avoid confusion with argument
1 parent 272a8fe commit 589f561

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/_libs/src/parser/tokenizer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,20 +1674,20 @@ double precise_xstrtod(const char *str, char **endptr, char decimal, char sci,
16741674
// move past scientific notation
16751675
p++;
16761676

1677-
char *endptr;
1677+
char *tmp_ptr;
16781678
errno = 0;
1679-
long int n = strtol(p, &endptr, 10);
1679+
long int n = strtol(p, &tmp_ptr, 10);
16801680

16811681
if (errno == ERANGE || checked_add(exponent, n, &exponent)) {
16821682
errno = 0;
16831683
exponent = n;
16841684
}
16851685

16861686
// If no digits after the 'e'/'E', un-consume it.
1687-
if (endptr == p)
1687+
if (tmp_ptr == p)
16881688
p--;
16891689
else
1690-
p = endptr;
1690+
p = tmp_ptr;
16911691
}
16921692

16931693
if (exponent > 308) {

0 commit comments

Comments
 (0)