diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gio/gfile.override | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2008-07-18 Johan Dahlin <johan@gnome.org> + * gio/gfile.override: + Use %zd instead of %d since it's a Py_ssize_t and not an int. + +2008-07-18 Johan Dahlin <johan@gnome.org> + * gio/pygio-utils.h: define NO_IMPORT_PYGOBJECT before including pygobject.h diff --git a/gio/gfile.override b/gio/gfile.override index 49b12aa..2d299ab 100644 --- a/gio/gfile.override +++ b/gio/gfile.override @@ -72,7 +72,7 @@ _wrap__file_init(PyGObject *self, PyObject *args, PyObject *kwargs) } } else { PyErr_Format(PyExc_TypeError, - "gio.File() takes exactly 1 argument (%d given)", + "gio.File() takes exactly 1 argument (%zd given)", n_args + n_kwargs); return NULL; } |