[gobject-introspection] girparser: backtrace_stderr: fix int/ssize_t format mismatch



commit 27487c565e24a69ad94c02b8d2b2532fef73f81f
Author: Simon McVittie <smcv debian org>
Date:   Wed May 19 16:17:06 2010 +0100

    girparser: backtrace_stderr: fix int/ssize_t format mismatch
    
    backtrace() is defined in terms of int, which differs from ssize_t on
    x86-64, and @size is also an int.

 girepository/girparser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 125bd17..0b2366f 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -287,7 +287,7 @@ backtrace_stderr (void)
   size = backtrace (array, 50);
   strings = (char**) backtrace_symbols (array, size);
 
-  fprintf (stderr, "--- BACKTRACE (%zd frames) ---\n", size);
+  fprintf (stderr, "--- BACKTRACE (%d frames) ---\n", size);
 
   for (i = 0; i < size; i++)
     fprintf (stderr, "%s\n", strings[i]);



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