mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Change more occurrences of maxsplit to Py_ssize_t.
This commit is contained in:
parent
9c83076b7b
commit
83687c98dc
1 changed files with 4 additions and 4 deletions
|
@ -1332,7 +1332,7 @@ static const char *stripformat[] = {"|O:lstrip", "|O:rstrip", "|O:strip"};
|
|||
Py_DECREF(str);
|
||||
|
||||
static PyObject *
|
||||
split_whitespace(const char *s, Py_ssize_t len, int maxsplit)
|
||||
split_whitespace(const char *s, Py_ssize_t len, Py_ssize_t maxsplit)
|
||||
{
|
||||
Py_ssize_t i, j;
|
||||
PyObject *str;
|
||||
|
@ -1366,7 +1366,7 @@ split_whitespace(const char *s, Py_ssize_t len, int maxsplit)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
split_char(const char *s, Py_ssize_t len, char ch, int maxcount)
|
||||
split_char(const char *s, Py_ssize_t len, char ch, Py_ssize_t maxcount)
|
||||
{
|
||||
register Py_ssize_t i, j;
|
||||
PyObject *str;
|
||||
|
@ -1472,7 +1472,7 @@ string_split(PyStringObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
rsplit_whitespace(const char *s, Py_ssize_t len, int maxsplit)
|
||||
rsplit_whitespace(const char *s, Py_ssize_t len, Py_ssize_t maxsplit)
|
||||
{
|
||||
Py_ssize_t i, j;
|
||||
PyObject *str;
|
||||
|
@ -1506,7 +1506,7 @@ rsplit_whitespace(const char *s, Py_ssize_t len, int maxsplit)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
rsplit_char(const char *s, Py_ssize_t len, char ch, int maxcount)
|
||||
rsplit_char(const char *s, Py_ssize_t len, char ch, Py_ssize_t maxcount)
|
||||
{
|
||||
register Py_ssize_t i, j;
|
||||
PyObject *str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue