From 58e3bc27303af2cb7fdd3fa144ead4cbd7e080a9 Mon Sep 17 00:00:00 2001 From: Andrew Straw Date: Sun, 31 Oct 2021 16:31:10 +0100 Subject: [PATCH] cast address as C long long (#37) --- src/python-codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python-codec.c b/src/python-codec.c index 39a513a..d94d9a6 100644 --- a/src/python-codec.c +++ b/src/python-codec.c @@ -280,7 +280,7 @@ static PyObject *py_hdr_decode(PyObject *self, PyObject *args) { int64_t min_nonzero_index = -1; int64_t max_nonzero_index = 0; - if (!PyArg_ParseTuple(args, "s#ilii", &src, &src_len, + if (!PyArg_ParseTuple(args, "s#iLii", &src, &src_len, &read_index, &vdst, &max_index, &word_size)) {