[pygobject] check if z# needs an int or Py_ssize_t



commit 55814e722c2ae11310f346790c9221e4fad92b50
Author: John (J5) Palmieri <johnp redhat com>
Date:   Fri Jul 30 06:30:48 2010 -0400

    check if z# needs an int or Py_ssize_t
    
    https://bugzilla.gnome.org/show_bug.cgi?id=625438

 gio/gio.override |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gio/gio.override b/gio/gio.override
index 6d001b9..a2f4dda 100644
--- a/gio/gio.override
+++ b/gio/gio.override
@@ -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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]