Skip to content

Commit dbea9c2

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ PyCSimpleType_init(PyObject *self, PyObject *args, PyObject *kwds)
23682368
}
23692369
else {
23702370
assert(fmt->pffi_type->type == FFI_TYPE_COMPLEX);
2371-
const size_t els_size = sizeof(2 * sizeof(ffi_type *));
2371+
const size_t els_size = 2 * sizeof(ffi_type *);
23722372
stginfo->ffi_type_pointer.size = fmt->pffi_type->size;
23732373
stginfo->ffi_type_pointer.alignment = fmt->pffi_type->alignment;
23742374
stginfo->ffi_type_pointer.type = fmt->pffi_type->type;

0 commit comments

Comments
 (0)