Skip to content

Commit cd536fb

Browse files
committed
chore: rename to number for diff
1 parent 47b87f9 commit cd536fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/_libs/src/parser/tokenizer.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,9 +1905,9 @@ int64_t str_to_int64(const char *p_item, int64_t int_min, int64_t int_max,
19051905
}
19061906

19071907
char *endptr;
1908-
int64_t result = strtoll(p, &endptr, 10);
1908+
int64_t number = strtoll(p, &endptr, 10);
19091909

1910-
if (errno == ERANGE || result > int_max || result < int_min) {
1910+
if (errno == ERANGE || number > int_max || number < int_min) {
19111911
*error = ERROR_OVERFLOW;
19121912
errno = 0;
19131913
return 0;
@@ -1925,7 +1925,7 @@ int64_t str_to_int64(const char *p_item, int64_t int_min, int64_t int_max,
19251925
}
19261926

19271927
*error = 0;
1928-
return result;
1928+
return number;
19291929
}
19301930

19311931
uint64_t str_to_uint64(uint_state *state, const char *p_item, int64_t int_max,
@@ -1965,9 +1965,9 @@ uint64_t str_to_uint64(uint_state *state, const char *p_item, int64_t int_max,
19651965
}
19661966

19671967
char *endptr;
1968-
uint64_t result = strtoull(p, &endptr, 10);
1968+
uint64_t number = strtoull(p, &endptr, 10);
19691969

1970-
if (errno == ERANGE || result > uint_max) {
1970+
if (errno == ERANGE || number > uint_max) {
19711971
*error = ERROR_OVERFLOW;
19721972
errno = 0;
19731973
return 0;
@@ -1984,10 +1984,10 @@ uint64_t str_to_uint64(uint_state *state, const char *p_item, int64_t int_max,
19841984
return 0;
19851985
}
19861986

1987-
if (result > (uint64_t)int_max) {
1987+
if (number > (uint64_t)int_max) {
19881988
state->seen_uint = 1;
19891989
}
19901990

19911991
*error = 0;
1992-
return result;
1992+
return number;
19931993
}

0 commit comments

Comments
 (0)