summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-18 08:28:51 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-18 08:28:51 +0000
commitf0e9c1f49c718a34986cf74821f5ef809217c65c (patch)
tree33f01618b4989fd932bbcd066e5068c839b6b9b1
parent7f0bd05620ae6ece9e324345c7e0270631c5a127 (diff)
downloadpygobject-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--ChangeLog5
-rw-r--r--gio/gfile.override2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1cd47fb..b8c10e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}