aboutsummaryrefslogtreecommitdiff
path: root/bfd/doc/chew.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-05 11:23:58 +0930
committerAlan Modra <amodra@gmail.com>2014-08-05 11:23:58 +0930
commit13ce3c11a1ea74166a530c576ffacf6e9915baf9 (patch)
tree938229fc86f4002a6e21045d41d4fa02c28e40d3 /bfd/doc/chew.c
parent7833fb7b8e4d0c75138ef715935a5040bc9b2e78 (diff)
downloadfsf-binutils-gdb-13ce3c11a1ea74166a530c576ffacf6e9915baf9.zip
fsf-binutils-gdb-13ce3c11a1ea74166a530c576ffacf6e9915baf9.tar.gz
fsf-binutils-gdb-13ce3c11a1ea74166a530c576ffacf6e9915baf9.tar.bz2
chew.c warning fix
* chew.c (print_stack_level, main): Cast result of pointer difference to match format string.
Diffstat (limited to 'bfd/doc/chew.c')
-rw-r--r--bfd/doc/chew.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c
index 1f81cae..0773f9c 100644
--- a/bfd/doc/chew.c
+++ b/bfd/doc/chew.c
@@ -474,8 +474,10 @@ remove_noncomments (src, dst)
static void
print_stack_level ()
{
- fprintf (stderr, "current string stack depth = %ld, ", tos - stack);
- fprintf (stderr, "current integer stack depth = %ld\n", isp - istack);
+ fprintf (stderr, "current string stack depth = %ld, ",
+ (long) (tos - stack));
+ fprintf (stderr, "current integer stack depth = %ld\n",
+ (long) (isp - istack));
pc++;
}
@@ -1562,7 +1564,7 @@ main (ac, av)
if (tos != stack)
{
fprintf (stderr, "finishing with current stack level %ld\n",
- tos - stack);
+ (long) (tos - stack));
return 1;
}
return 0;