summaryrefslogtreecommitdiff
path: root/src/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index a8c10a8..4f822b1 100644
--- a/src/module.c
+++ b/src/module.c
@@ -173,7 +173,7 @@ xpyb_resize_obj(PyObject *self, PyObject *args)
Py_ssize_t size;
PyObject *buf;
- if (!PyArg_ParseTuple(args, "O!i", &xpybProtobj_type, &obj, &size))
+ if (!PyArg_ParseTuple(args, "O!n", &xpybProtobj_type, &obj, &size))
return NULL;
buf = PyBuffer_FromObject(obj->buf, 0, size);