From 5f11b1470b20c34b325c5534aca5afc44d37d8c8 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sat, 8 Mar 2008 11:31:00 +0000 Subject: Pass in l instead of i to PyArg_ParseTupleAndKeywords when parsing a long. 2008-03-08 Johan Dahlin * gio/ginputstream.override: Pass in l instead of i to PyArg_ParseTupleAndKeywords when parsing a long. Fixes the build on 64-bit systems. (#521165, Thomas Leonard) svn path=/trunk/; revision=749 --- ChangeLog | 9 ++++++++- gio/ginputstream.override | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3c8effa..8e4f980 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,11 @@ -2008-03-22 Johan Dahlin +2008-03-08 Johan Dahlin + + * gio/ginputstream.override: + Pass in l instead of i to PyArg_ParseTupleAndKeywords when + parsing a long. Fixes the build on 64-bit systems. + (#521165, Thomas Leonard) + +2008-03-02 Johan Dahlin * Makefile.am: Dist .m4 files. (#496011, Ed Catmur) diff --git a/gio/ginputstream.override b/gio/ginputstream.override index d85a2c3..c279d41 100644 --- a/gio/ginputstream.override +++ b/gio/ginputstream.override @@ -34,7 +34,7 @@ _wrap_g_input_stream_read(PyGObject *self, PyObject *args, PyObject *kwargs) size_t bytesread, buffersize, chunksize; if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "|iO!:InputStream.read", + "|lO!:InputStream.read", kwlist, &count, &PyGCancellable_Type, &pycancellable)) return NULL; @@ -108,7 +108,7 @@ _wrap_g_input_stream_read_async(PyGObject *self, PyObject *args, PyObject *kwarg notify = g_slice_new0(PyGAsyncRequestNotify); if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "iiOO|O:InputStream.read_async", + "liOO|O:InputStream.read_async", kwlist, &count, &io_priority, &pycancellable, -- cgit