Use Py_ssize_t for murmur3 key len

This commit is contained in:
Tyler Hobbs
2013-11-22 13:28:59 -06:00
parent 4d666384bb
commit 56c11961e6

View File

@@ -9,6 +9,7 @@
*
*/
#define PY_SSIZE_T_CLEAN 1
#include <Python.h>
#include <stdio.h>
@@ -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)) {