pyregistry: Adjust to use of PY_SSIZE_T_CLEAN
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Jan 2016 00:06:31 +0000 (13:06 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Jan 2016 22:33:10 +0000 (23:33 +0100)
This changes the type used for # arguments to PyArg_ParseTuple

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
source4/lib/registry/pyregistry.c

index 8f967109cc4b4bfb862ccfd2353015d066929d41..7b7fdf34f73bb5ec80532dba099f2ac254ed6ad3 100644 (file)
@@ -212,7 +212,7 @@ static PyObject *py_hive_key_set_value(PyObject *self, PyObject *args)
        char *name;
        uint32_t type;
        DATA_BLOB value;
-       int value_length = 0;
+       Py_ssize_t value_length = 0;
        WERROR result;
        struct hive_key *key = PyHiveKey_AsHiveKey(self);