[glib] glib-mirroring-tab: Fix string format placeholder to be unsigned



commit c868d9879c7b3ae118283849bde3f160bc55cc69
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Sat Aug 13 10:27:54 2016 +0200

    glib-mirroring-tab: Fix string format placeholder to be unsigned
    
    Because the argument is unsigned. As spotted by cppcheck, which never
    sleeps.

 glib/glib-mirroring-tab/gen-mirroring-tab.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/glib-mirroring-tab/gen-mirroring-tab.c b/glib/glib-mirroring-tab/gen-mirroring-tab.c
index 253d143..6731ecd 100644
--- a/glib/glib-mirroring-tab/gen-mirroring-tab.c
+++ b/glib/glib-mirroring-tab/gen-mirroring-tab.c
@@ -139,7 +139,7 @@ read_bidi_mirroring_txt (
 
       k = sscanf (s, "%lx; %lx", &i, &j);
       if (k != 2 || i >= UNICODE_CHARS || j >= UNICODE_CHARS)
-       die4 ("invalid pair in input at line %ld: %04lX, %04lX", l, i, j);
+       die4 ("invalid pair in input at line %lu: %04lX, %04lX", l, i, j);
       dist = ((signed long) j - (signed long) i);
       table[i] = dist;
       if (dist > max_dist)


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