[Python-checkins] cpython (2.7): use PyInt_FromSsize_t instead of PyLong_FromSsize_t (#10182)
benjamin.peterson
python-checkins at python.org
Thu Jan 10 17:37:58 CET 2013
http://hg.python.org/cpython/rev/0f5067d9e1d8
changeset: 81371:0f5067d9e1d8
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Thu Jan 10 10:37:47 2013 -0600
summary:
use PyInt_FromSsize_t instead of PyLong_FromSsize_t (#10182)
files:
Modules/_sre.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Modules/_sre.c b/Modules/_sre.c
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -1636,7 +1636,7 @@
static PyObject *
sre_codesize(PyObject* self, PyObject *unused)
{
- return PyLong_FromSize_t(sizeof(SRE_CODE));
+ return PyInt_FromSize_t(sizeof(SRE_CODE));
}
static PyObject *
@@ -3389,7 +3389,7 @@
}
/* mark is -1 if group is undefined */
- return PyLong_FromSsize_t(self->mark[index*2]);
+ return PyInt_FromSsize_t(self->mark[index*2]);
}
static PyObject*
@@ -3412,7 +3412,7 @@
}
/* mark is -1 if group is undefined */
- return PyLong_FromSsize_t(self->mark[index*2+1]);
+ return PyInt_FromSsize_t(self->mark[index*2+1]);
}
LOCAL(PyObject*)
@@ -3602,7 +3602,7 @@
match_lastindex_get(MatchObject *self)
{
if (self->lastindex >= 0)
- return PyLong_FromSsize_t(self->lastindex);
+ return PyInt_FromSsize_t(self->lastindex);
Py_INCREF(Py_None);
return Py_None;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list