Skip to content

Commit 46196ef

Browse files
Update Modules/_ctypes/_ctypes.c
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
1 parent 5bc7101 commit 46196ef

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 @@ set_stginfo_ffi_type_pointer(StgInfo *stginfo, struct fielddesc *fmt)
22302230
}
22312231
else {
22322232
assert(fmt->pffi_type->type == FFI_TYPE_COMPLEX);
2233-
const size_t els_size = sizeof(2 * sizeof(ffi_type *));
2233+
const size_t els_size = 2 * sizeof(ffi_type *);
22342234
stginfo->ffi_type_pointer.size = fmt->pffi_type->size;
22352235
stginfo->ffi_type_pointer.alignment = fmt->pffi_type->alignment;
22362236
stginfo->ffi_type_pointer.type = fmt->pffi_type->type;

0 commit comments

Comments
 (0)