Skip to content

Commit b6ebcfc

Browse files
committed
add comment
1 parent 1b4e4d9 commit b6ebcfc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,6 +2367,8 @@ PyCSimpleType_init(PyObject *self, PyObject *args, PyObject *kwds)
23672367
stginfo->ffi_type_pointer = *fmt->pffi_type;
23682368
}
23692369
else {
2370+
/* From primitive types - only complex types have the elements
2371+
struct field as non-NULL (two element array). */
23702372
assert(fmt->pffi_type->type == FFI_TYPE_COMPLEX);
23712373
const size_t els_size = 2 * sizeof(ffi_type *);
23722374
stginfo->ffi_type_pointer.size = fmt->pffi_type->size;

0 commit comments

Comments
 (0)