From a5d88b2b489c66b8e225593c1eaf4635990523db Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Thu, 5 Dec 2019 21:31:42 +0100 Subject: [PATCH] Make the code Py_ssize_t clean Thanks python 3.8 for the hint! --- acl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acl.c b/acl.c index 139d5e5..6f51a04 100644 --- a/acl.c +++ b/acl.c @@ -20,6 +20,7 @@ */ +#define PY_SSIZE_T_CLEAN #include #include @@ -499,7 +500,7 @@ static PyObject* ACL_get_state(PyObject *obj, PyObject* args) { static PyObject* ACL_set_state(PyObject *obj, PyObject* args) { ACL_Object *self = (ACL_Object*) obj; const void *buf; - int bufsize; + Py_ssize_t bufsize; acl_t ptr; /* Parse the argument */ -- 2.39.5