diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-06 12:22:00 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-06 12:22:00 (GMT) |
commit | d50338fbd9928527f6d53ade8974619591982b2e (patch) | |
tree | d197233ef38d1df130fa134d88a371dcd641a030 /Python/modsupport.c | |
parent | 63f3d1741824b61eae886e4b29ae2b22a79f2419 (diff) | |
download | cpython-d50338fbd9928527f6d53ade8974619591982b2e.zip cpython-d50338fbd9928527f6d53ade8974619591982b2e.tar.gz cpython-d50338fbd9928527f6d53ade8974619591982b2e.tar.bz2 |
Added support for H (unsigned short) specifier in PyArg_ParseTuple and
Py_BuildValue.
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r-- | Python/modsupport.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c index afecc0e..5cd2870 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -278,6 +278,9 @@ do_mkvalue(p_format, p_va) 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)); |