From 88c21c0b82696f01454c1391002e1cf62f598b25 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Fri, 19 Feb 2021 07:36:30 +0100 Subject: Need a cast here because the type ffi_status is unsigned --- c/_cffi_backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c') diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c index 3d17b67..525dec4 100644 --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -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); } -- cgit v1.2.1