summaryrefslogtreecommitdiffstats
path: root/Modules/_bisectmodule.c
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2012-05-16 14:03:07 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2012-05-16 14:03:07 (GMT)
commit26fd8feb5e96276bc99d5682865d34deb190b731 (patch)
treecfef5fe0375c28cacbcc6228113c4baadbdd317c /Modules/_bisectmodule.c
parente1266782160b0eef3726658480b83fa9fbcb6f0e (diff)
parent7ca29507f69d6b35cd697f533bc754a7864e6292 (diff)
downloadcpython-26fd8feb5e96276bc99d5682865d34deb190b731.zip
cpython-26fd8feb5e96276bc99d5682865d34deb190b731.tar.gz
cpython-26fd8feb5e96276bc99d5682865d34deb190b731.tar.bz2
merge heads
Diffstat (limited to 'Modules/_bisectmodule.c')
-rw-r--r--Modules/_bisectmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_bisectmodule.c b/Modules/_bisectmodule.c
index 4d0a2e4..faca8cf 100644
--- a/Modules/_bisectmodule.c
+++ b/Modules/_bisectmodule.c
@@ -3,6 +3,7 @@
Converted to C by Dmitry Vasiliev (dima at hlabs.spb.ru).
*/
+#define PY_SSIZE_T_CLEAN
#include "Python.h"
static Py_ssize_t
@@ -195,8 +196,7 @@ insort_left(PyObject *self, PyObject *args, PyObject *kw)
return NULL;
} else {
_Py_IDENTIFIER(insert);
-
- result = _PyObject_CallMethodId(list, &PyId_insert, "iO", index, item);
+ result = _PyObject_CallMethodId(list, &PyId_insert, "nO", index, item);
if (result == NULL)
return NULL;
Py_DECREF(result);