diff --git a/cassandra/murmur3.c b/cassandra/murmur3.c index 0e3d553a..3617819d 100644 --- a/cassandra/murmur3.c +++ b/cassandra/murmur3.c @@ -9,6 +9,7 @@ * */ +#define PY_SSIZE_T_CLEAN 1 #include #include @@ -172,7 +173,7 @@ static PyObject * murmur3(PyObject *self, PyObject *args) { const char *key; - int *len; + Py_ssize_t len; uint32_t seed = 0; if (!PyArg_ParseTuple(args, "s#|I", &key, &len, &seed)) {