python: In parsing args of write method of CrFile use int for length instead of Py_ss...
authorTomas Mlcoch <tmlcoch@redhat.com>
Wed, 3 Jul 2013 10:55:47 +0000 (12:55 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Wed, 3 Jul 2013 11:47:24 +0000 (13:47 +0200)
src/python/compression_wrapper-py.c

index f261377..4971159 100644 (file)
@@ -196,7 +196,7 @@ static PyObject *
 py_write(_CrFileObject *self, PyObject *args)
 {
     char *str;
-    Py_ssize_t len;
+    int len;
     GError *tmp_err = NULL;
 
     if (!PyArg_ParseTuple(args, "s#:set_num_of_pkgs", &str, &len))