diff Python/modsupport.c @ 13378:113d833eea7e legacy-trunk

Added support for H (unsigned short) specifier in PyArg_ParseTuple and Py_BuildValue.
author Jack Jansen <jack.jansen@cwi.nl>
date Thu, 06 Jul 2000 12:22:00 +0000
parents 63d2887baf11
children a89f7f268de4
line wrap: on
line diff
--- a/Python/modsupport.c	Thu Jul 06 11:29:01 2000 +0000
+++ b/Python/modsupport.c	Thu Jul 06 12:22:00 2000 +0000
@@ -278,6 +278,9 @@
 		case 'h':
 		case 'i':
 			return PyInt_FromLong((long)va_arg(*p_va, int));
+			
+		case 'H':
+			return PyInt_FromLong((long)va_arg(*p_va, unsigned int));
 
 		case 'l':
 			return PyInt_FromLong((long)va_arg(*p_va, long));