summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:37:16 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:37:16 (GMT)
commitd96ee909934f3855135589e0e8d6ece1912c1f22 (patch)
tree831f7231c28aecc2be637bc80994e6ccabd009f2 /Python/modsupport.c
parentf5adf1eb72c755c3f6183199656f18b12a1cb952 (diff)
downloadcpython-d96ee909934f3855135589e0e8d6ece1912c1f22.zip
cpython-d96ee909934f3855135589e0e8d6ece1912c1f22.tar.gz
cpython-d96ee909934f3855135589e0e8d6ece1912c1f22.tar.bz2
Use Py_ssize_t to count the
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index f92fc34..2356a9e 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -315,7 +315,7 @@ do_mkvalue(const char **p_format, va_list *p_va)
case 'n':
#if SIZEOF_SIZE_T!=SIZEOF_LONG
- return PyLong_FromSsize_t(va_arg(*p_va, Py_Ssize_t));
+ return PyInt_FromSsize_t(va_arg(*p_va, Py_ssize_t));
#endif
/* Fall through from 'n' to 'l' if Py_ssize_t is long */
case 'l':