[Python-checkins] python/dist/src/Python modsupport.c,2.66,2.67
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Thu, 17 Apr 2003 15:01:16 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv16068
Modified Files:
modsupport.c
Log Message:
dded missing k and K format specifiers to Py_BuildValue and friends.
Index: modsupport.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/modsupport.c,v
retrieving revision 2.66
retrieving revision 2.67
diff -C2 -d -r2.66 -r2.67
*** modsupport.c 29 Mar 2003 10:04:55 -0000 2.66
--- modsupport.c 17 Apr 2003 22:01:10 -0000 2.67
***************
*** 290,296 ****
--- 290,302 ----
return PyInt_FromLong((long)va_arg(*p_va, long));
+ case 'k':
+ return PyInt_FromLong((long)va_arg(*p_va, unsigned long));
+
#ifdef HAVE_LONG_LONG
case 'L':
return PyLong_FromLongLong((PY_LONG_LONG)va_arg(*p_va, PY_LONG_LONG));
+
+ case 'K':
+ return PyLong_FromLongLong((PY_LONG_LONG)va_arg(*p_va, unsigned PY_LONG_LONG));
#endif
#ifdef Py_USING_UNICODE