Skip to content

Commit e9cab4a

Browse files
committed
Adjust test in _ctypes.c to not use FFI_TYPE_COMPLEX define
1 parent 56b524c commit e9cab4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ PyCSimpleType_init(PyObject *self, PyObject *args, PyObject *kwds)
22302230
goto error;
22312231
}
22322232

2233-
if (fmt->pffi_type->type != FFI_TYPE_COMPLEX) {
2233+
if (!fmt->pffi_type->elements) {
22342234
stginfo->ffi_type_pointer = *fmt->pffi_type;
22352235
}
22362236
else {

0 commit comments

Comments
 (0)