summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/bufferobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c
index b0227c1..eff06aa 100644
--- a/Objects/bufferobject.c
+++ b/Objects/bufferobject.c
@@ -196,7 +196,7 @@ buffer_new(PyTypeObject *type, PyObject *args, PyObject *kw)
if (!_PyArg_NoKeywords("buffer()", kw))
return NULL;
- if (!PyArg_ParseTuple(args, "O|ll:buffer", &ob, &offset, &size))
+ if (!PyArg_ParseTuple(args, "O|nn:buffer", &ob, &offset, &size))
return NULL;
return PyBuffer_FromObject(ob, offset, size);
}