summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-04-17 22:01:10 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-04-17 22:01:10 (GMT)
commitdbd6503e97264938c8fb4ce099c64da7a475e12e (patch)
tree05571705b5da171468b6b8db520d9a3debfeeacd /Python/modsupport.c
parentaa3b5d2ec59625b08501eaa17206c82356d98053 (diff)
downloadcpython-dbd6503e97264938c8fb4ce099c64da7a475e12e.zip
cpython-dbd6503e97264938c8fb4ce099c64da7a475e12e.tar.gz
cpython-dbd6503e97264938c8fb4ce099c64da7a475e12e.tar.bz2
dded missing k and K format specifiers to Py_BuildValue and friends.
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 9725a1b..12f3f17 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -289,9 +289,15 @@ do_mkvalue(char **p_format, va_list *p_va)
case 'l':
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
case 'u':