summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:32:27 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:32:27 (GMT)
commiteb079f1c2533bcefcab3ef4c07b800e5bd37239f (patch)
tree32ce8e1eafb2e93ef977649e3cb60a3c0ec0fc00 /Objects/abstract.c
parentad0a4629beac0600c4c4c3167b0d68be57ca674e (diff)
downloadcpython-eb079f1c2533bcefcab3ef4c07b800e5bd37239f.zip
cpython-eb079f1c2533bcefcab3ef4c07b800e5bd37239f.tar.gz
cpython-eb079f1c2533bcefcab3ef4c07b800e5bd37239f.tar.bz2
Use Py_ssize_t for counts and sizes.
Convert Py_ssize_t using PyInt_FromSsize_t
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 3fe7a7e..a7cc0d6 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1170,7 +1170,7 @@ PySequence_Repeat(PyObject *o, Py_ssize_t count)
to nb_multiply if o appears to be a sequence. */
if (PySequence_Check(o)) {
PyObject *n, *result;
- n = PyInt_FromLong(count);
+ n = PyInt_FromSsize_t(count);
if (n == NULL)
return NULL;
result = binary_op1(o, n, NB_SLOT(nb_multiply));
@@ -1222,7 +1222,7 @@ PySequence_InPlaceRepeat(PyObject *o, Py_ssize_t count)
if (PySequence_Check(o)) {
PyObject *n, *result;
- n = PyInt_FromLong(count);
+ n = PyInt_FromSsize_t(count);
if (n == NULL)
return NULL;
result = binary_iop1(o, n, NB_SLOT(nb_inplace_multiply),