Commit 9ee6a0a0851334a50e9fc54e382adc468533c140

suzuki toshiya 2014-11-28T11:14:18

Fix compiler warning to conversion specifiers in debug messages. * src/autofit/afhints.c (af_glyph_hints_dump_points): Add length modifier to dump long integers. (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Ditto.

diff --git a/ChangeLog b/ChangeLog
index d0a2b25..2b744ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-11-28  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	Fix compiler warning to conversion specifiers in debug messages.
+
+	* src/autofit/afhints.c (af_glyph_hints_dump_points): Add length
+	modifier to dump long integers.  (af_glyph_hints_dump_segments,
+	af_glyph_hints_dump_edges): Ditto.
+
 2014-11-27  Werner Lemberg  <wl@gnu.org>
 
 	* src/tools/docmaker/tohtml.py: Usee more CSS for index.
diff --git a/src/autofit/afhints.c b/src/autofit/afhints.c
index 9fbc541..89b640c 100644
--- a/src/autofit/afhints.c
+++ b/src/autofit/afhints.c
@@ -200,7 +200,7 @@
               " |  xfit |  yfit |  flags ]\n" ));
 
     for ( point = points; point < limit; point++ )
-      AF_DUMP(( "  [ %5d | %5d | %5d | %6.2f | %6.2f"
+      AF_DUMP(( "  [ %5ld | %5d | %5d | %6.2f | %6.2f"
                 " | %5.2f | %5.2f | %c ]\n",
                 point - points,
                 point->fx,
@@ -278,8 +278,8 @@
         AF_DUMP(( "  (none)\n" ));
 
       for ( seg = segments; seg < limit; seg++ )
-        AF_DUMP(( "  [ %5d | %5.2g | %5s | %4d"
-                  " | %4d | %4d | %5d | %4d"
+        AF_DUMP(( "  [ %5ld | %5.2g | %5s | %4ld"
+                  " | %4ld | %4ld | %5ld | %4ld"
                   " | %6d | %5d | %11s ]\n",
                   seg - segments,
                   dimension == AF_DIMENSION_HORZ
@@ -410,8 +410,8 @@
         AF_DUMP(( "  (none)\n" ));
 
       for ( edge = edges; edge < limit; edge++ )
-        AF_DUMP(( "  [ %5d | %5.2g | %5s | %4d"
-                  " | %5d |   %c  | %5.2f | %5.2f | %11s ]\n",
+        AF_DUMP(( "  [ %5ld | %5.2g | %5s | %4ld"
+                  " | %5ld |   %c  | %5.2f | %5.2f | %11s ]\n",
                   edge - edges,
                   (int)edge->opos / 64.0,
                   af_dir_str( (AF_Direction)edge->dir ),