Skip to content

Commit a7f5a1f

Browse files
committed
add comment
1 parent 42e4109 commit a7f5a1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,6 +2229,8 @@ set_stginfo_ffi_type_pointer(StgInfo *stginfo, struct fielddesc *fmt)
22292229
stginfo->ffi_type_pointer = *fmt->pffi_type;
22302230
}
22312231
else {
2232+
/* From primitive types - only complex types have the elements
2233+
struct field as non-NULL (two element array). */
22322234
assert(fmt->pffi_type->type == FFI_TYPE_COMPLEX);
22332235
const size_t els_size = 2 * sizeof(ffi_type *);
22342236
stginfo->ffi_type_pointer.size = fmt->pffi_type->size;

0 commit comments

Comments
 (0)