Skip to content

Commit ff4d48b

Browse files
committed
fix: remove unnecessary errno verification
1 parent 593c614 commit ff4d48b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/_libs/src/parser/tokenizer.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,11 +1933,6 @@ int64_t str_to_int64(const char *p_item, int64_t int_min, int64_t int_max,
19331933
p_item = buffer;
19341934
}
19351935

1936-
if (errno == ERANGE) {
1937-
*error = ERROR_OVERFLOW;
1938-
return 0;
1939-
}
1940-
19411936
char *endptr = NULL;
19421937
// strtoll sets errno if it finds an overflow.
19431938
// It's value is reset to don't pollute the verification below.

0 commit comments

Comments
 (0)