mirror of
https://github.com/python/cpython.git
synced 2026-05-09 20:10:56 +00:00
Fix PyCSimpleType_init() for Zf/Zd/Zg formats
This commit is contained in:
parent
869cd8865a
commit
52846d1fe5
1 changed files with 9 additions and 3 deletions
|
|
@ -2415,9 +2415,15 @@ PyCSimpleType_init(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
ml = c_char_p_methods;
|
||||
stginfo->flags |= TYPEFLAG_ISPOINTER;
|
||||
break;
|
||||
case 'Z': /* c_wchar_p */
|
||||
ml = c_wchar_p_methods;
|
||||
stginfo->flags |= TYPEFLAG_ISPOINTER;
|
||||
case 'Z':
|
||||
if (proto_str[1] == '\0') {
|
||||
/* "Z": c_wchar_p */
|
||||
ml = c_wchar_p_methods;
|
||||
stginfo->flags |= TYPEFLAG_ISPOINTER;
|
||||
}
|
||||
else {
|
||||
ml = NULL;
|
||||
}
|
||||
break;
|
||||
case 'P': /* c_void_p */
|
||||
ml = c_void_p_methods;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue