Commit 3c54d184 authored by Armin Rigo's avatar Armin Rigo

Need a cast here because the type ffi_status is unsigned

parent df48cf87f50f
......@@ -5854,7 +5854,7 @@ static cif_description_t *fb_prepare_cif(PyObject *fargs,
char *buffer;
cif_description_t *cif_descr;
struct funcbuilder_s funcbuffer;
ffi_status status = -1;
ffi_status status = (ffi_status)-1;
funcbuffer.nb_bytes = 0;
funcbuffer.bufferp = NULL;
......@@ -5889,7 +5889,7 @@ static cif_description_t *fb_prepare_cif(PyObject *fargs,
}
#endif
if (status == -1) {
if (status == (ffi_status)-1) {
status = ffi_prep_cif(&cif_descr->cif, fabi, funcbuffer.nargs,
funcbuffer.rtype, funcbuffer.atypes);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment