summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-04-13 08:52:56 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-04-13 08:52:56 (GMT)
commit83687c98dcb1deb6c0e7091e2f9df7dbeae56910 (patch)
tree75965ce9a32caedc4efcecba09af72857060d03b /Objects
parent9c83076b7b70aa3a36f3b3916ea376844d43c180 (diff)
downloadcpython-83687c98dcb1deb6c0e7091e2f9df7dbeae56910.zip
cpython-83687c98dcb1deb6c0e7091e2f9df7dbeae56910.tar.gz
cpython-83687c98dcb1deb6c0e7091e2f9df7dbeae56910.tar.bz2
Change more occurrences of maxsplit to Py_ssize_t.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index dd602f5..b399415 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -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;