mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #7414: Add missing 'case 'C'' to skipitem() in getargs.c. This
was causing PyArg_ParseTupleAndKeywords(args, kwargs, "|CC", ...) to fail with a RuntimeError. Thanks Case Van Horsen for tracking down the source of this error.
This commit is contained in:
parent
05159c4a7b
commit
f08173bb93
3 changed files with 51 additions and 0 deletions
|
@ -1772,6 +1772,7 @@ skipitem(const char **p_format, va_list *p_va, int flags)
|
|||
case 'd': /* double */
|
||||
case 'D': /* complex double */
|
||||
case 'c': /* char */
|
||||
case 'C': /* unicode char */
|
||||
{
|
||||
(void) va_arg(*p_va, void *);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue