author | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-05-26 03:22:45 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-05-26 03:22:45 UTC |
parent | ee371c36e6e24e1882f89696a2961af6897e0149 |
bindings/python/libjio.c | +2 | -2 |
diff --git a/bindings/python/libjio.c b/bindings/python/libjio.c index b75ba98..e0c8c68 100644 --- a/bindings/python/libjio.c +++ b/bindings/python/libjio.c @@ -101,7 +101,7 @@ static PyObject *jf_read(jfile_object *fp, PyObject *args) unsigned char *buf; PyObject *r; - if (!PyArg_ParseTuple(args, "i:read", &len)) + if (!PyArg_ParseTuple(args, "l:read", &len)) return NULL; buf = malloc(len); @@ -142,7 +142,7 @@ static PyObject *jf_pread(jfile_object *fp, PyObject *args) unsigned char *buf; PyObject *r; - if (!PyArg_ParseTuple(args, "iL:pread", &len, &offset)) + if (!PyArg_ParseTuple(args, "lL:pread", &len, &offset)) return NULL; buf = malloc(len);