[pygobject] pygi-marshal: One more 32-bit -Werror=format fix



commit b5cd13f47309ec26727b7574e33595a357602468
Author: Colin Walters <walters verbum org>
Date:   Tue Jul 31 11:47:02 2012 -0400

    pygi-marshal: One more 32-bit -Werror=format fix

 gi/pygi-marshal-from-py.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gi/pygi-marshal-from-py.c b/gi/pygi-marshal-from-py.c
index 9a0b008..26c08c9 100644
--- a/gi/pygi-marshal-from-py.c
+++ b/gi/pygi-marshal-from-py.c
@@ -457,10 +457,10 @@ _pygi_marshal_from_py_uint64 (PyGIInvokeState   *state,
 
 #if PY_VERSION_HEX < 0x03000000
     if (PyInt_Check (py_long)) {
-        long long_ = PyInt_AsLong (py_long);
+        gint64 long_ = (gint64) PyInt_AsLong (py_long);
         if (long_ < 0) {
-            PyErr_Format (PyExc_ValueError, "%ld not in range %d to %lu",
-                          long_, 0, G_MAXUINT64);
+            PyErr_Format (PyExc_ValueError, "%" G_GUINT64_FORMAT " not in range %d to %" G_GUINT64_FORMAT,
+                          (gint64) long_, 0, G_MAXUINT64);
             return FALSE;
         }
         ulong_ = long_;



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