From d96ee909934f3855135589e0e8d6ece1912c1f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 16 Feb 2006 14:37:16 +0000 Subject: Use Py_ssize_t to count the --- Python/modsupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/modsupport.c') diff --git a/Python/modsupport.c b/Python/modsupport.c index f92fc341a8..2356a9e57e 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': -- cgit v1.2.1