summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2021-02-19 07:36:30 +0100
committerArmin Rigo <arigo@tunes.org>2021-02-19 07:36:30 +0100
commit88c21c0b82696f01454c1391002e1cf62f598b25 (patch)
treebed68f9e99655858c348f279e36727bef1473411 /c
parented6e174881d1b78f3aecf253f8a01fc2cb90fa8e (diff)
downloadcffi-88c21c0b82696f01454c1391002e1cf62f598b25.tar.gz
Need a cast here because the type ffi_status is unsigned
Diffstat (limited to 'c')
-rw-r--r--c/_cffi_backend.c4
1 files changed, 2 insertions, 2 deletions
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);
}