summaryrefslogtreecommitdiff
path: root/gio/gio.override
diff options
context:
space:
mode:
authorGraydon, Tracy <tracy.graydon@intel.com>2012-11-30 12:11:38 -0800
committerGraydon, Tracy <tracy.graydon@intel.com>2012-11-30 12:11:38 -0800
commit1a48cb6e7504163228442a2894af21af66e93eb2 (patch)
tree8d117e9778e44c485d187679bf5250c52e02975d /gio/gio.override
parente319390cebb45884f62ca3c2b22984d8ed82b941 (diff)
downloadpygobject2-1a48cb6e7504163228442a2894af21af66e93eb2.tar.gz
pygobject2-1a48cb6e7504163228442a2894af21af66e93eb2.tar.bz2
pygobject2-1a48cb6e7504163228442a2894af21af66e93eb2.zip
Update to 2.28 for TINF-96
Diffstat (limited to 'gio/gio.override')
-rw-r--r--gio/gio.override7
1 files changed, 6 insertions, 1 deletions
diff --git a/gio/gio.override b/gio/gio.override
index 6d001b9..7fdcb1c 100644
--- a/gio/gio.override
+++ b/gio/gio.override
@@ -141,7 +141,7 @@ pygio_notify_allocate_buffer(PyGIONotify *notify, gsize buffer_size)
if (buffer_size > 0) {
notify->buffer = g_slice_alloc(buffer_size);
if (!notify->buffer) {
- PyErr_Format(PyExc_MemoryError, "failed to allocate %d bytes", buffer_size);
+ PyErr_Format(PyExc_MemoryError, "failed to allocate %" G_GSIZE_FORMAT " bytes", buffer_size);
return FALSE;
}
@@ -330,7 +330,12 @@ _wrap_g_content_type_guess(PyGObject *self, PyObject *args, PyObject *kwargs)
{
char *kwlist[] = {"filename", "data", "want_uncertain", NULL};
char *filename = NULL, *data = NULL, *type;
+#ifdef PY_SSIZE_T_CLEAN
+ Py_ssize_t data_size = 0;
+#else
int data_size = 0;
+#endif
+
gboolean result_uncertain, want_uncertain = FALSE;
PyObject *ret;