Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ jobs:
cd .. && \
rm -rf libffi-3.4.6
CIBW_ENVIRONMENT_PASS_LINUX: CFLAGS # ensure that the build container can see our overridden build config
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_img || '' }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_img || 'manylinux_2_28' }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_img || '' }}
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux_img || '' }}
CIBW_MANYLINUX_PPC64LE_IMAGE: ${{ matrix.manylinux_img || '' }}
Expand Down
4 changes: 2 additions & 2 deletions src/c/_cffi_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -4753,7 +4753,7 @@ static PyObject *get_unique_type(CTypeDescrObject *x,
*/
PyObject *key, *y;

key = PyBytes_FromStringAndSize(unique_key, keylength * sizeof(void *));
key = PyBytes_FromStringAndSize((const char *)unique_key, keylength * sizeof(void *));
if (key == NULL) {
Py_DECREF(x);
return NULL;
Expand All @@ -4773,7 +4773,7 @@ static void remove_dead_unique_reference(PyObject *unique_key)
{
PyObject *wr;
PyObject *tmp = NULL;
int err;
int err = 0;

LOCK_UNIQUE_CACHE();
/* We need to check that it's not already been replaced by a live weakref
Expand Down
4 changes: 2 additions & 2 deletions src/c/realize_c_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static int init_global_types_dict(PyObject *ffi_type_dict)
return -1;
g_ct_chararray = (CTypeDescrObject *)ct2;

g_ct_int = get_primitive_type(_CFFI_PRIM_INT); // 'int'
g_ct_int = (CTypeDescrObject *)get_primitive_type(_CFFI_PRIM_INT); // 'int'
if (g_ct_int == NULL)
return -1;

Expand Down Expand Up @@ -370,7 +370,7 @@ _realize_c_struct_or_union(builder_c_t *builder, int sindex)
if (sindex == _CFFI__IO_FILE_STRUCT) {
/* returns a single global cached opaque type */
Py_INCREF(g_file_struct);
return g_file_struct;
return (PyObject *)g_file_struct;
}

s = &builder->ctx.struct_unions[sindex];
Expand Down
Loading