mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Added support for H (unsigned short) specifier in PyArg_ParseTuple and
Py_BuildValue.
This commit is contained in:
parent
63f3d17418
commit
d50338fbd9
2 changed files with 30 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue