64-bit host warning fix

Alan Modra amodra@gmail.com
Mon Feb 27 07:03:00 GMT 2012


	* chew.c (print_stack_level, main): Use %ld to print stack delta.

Index: bfd/doc/chew.c
===================================================================
RCS file: /cvs/src/src/bfd/doc/chew.c,v
retrieving revision 1.24
diff -u -p -r1.24 chew.c
--- bfd/doc/chew.c	28 Sep 2009 12:15:51 -0000	1.24
+++ bfd/doc/chew.c	26 Feb 2012 03:49:16 -0000
@@ -476,8 +476,8 @@ remove_noncomments (src, dst)
 static void
 print_stack_level ()
 {
-  fprintf (stderr, "current string stack depth = %d, ", tos - stack);
-  fprintf (stderr, "current integer stack depth = %d\n", isp - istack);
+  fprintf (stderr, "current string stack depth = %ld, ", tos - stack);
+  fprintf (stderr, "current integer stack depth = %ld\n", isp - istack);
   pc++;
 }
 
@@ -1563,7 +1563,7 @@ main (ac, av)
   write_buffer (stack + 0, stdout);
   if (tos != stack)
     {
-      fprintf (stderr, "finishing with current stack level %d\n",
+      fprintf (stderr, "finishing with current stack level %ld\n",
 	       tos - stack);
       return 1;
     }

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list