diff options
author | Johan Dahlin <johan@gnome.org> | 2008-07-18 08:28:51 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-18 08:28:51 +0000 |
commit | f0e9c1f49c718a34986cf74821f5ef809217c65c (patch) | |
tree | 33f01618b4989fd932bbcd066e5068c839b6b9b1 | |
parent | 7f0bd05620ae6ece9e324345c7e0270631c5a127 (diff) | |
download | pygobject-f0e9c1f49c718a34986cf74821f5ef809217c65c.tar.gz pygobject-f0e9c1f49c718a34986cf74821f5ef809217c65c.tar.xz pygobject-f0e9c1f49c718a34986cf74821f5ef809217c65c.zip |
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/gfile.override:
Use %zd instead of %d since it's a Py_ssize_t and not an int.
svn path=/trunk/; revision=827
-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; } |