From 738f17d1799542a46a3dcbc375a64e643c693e9f Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 25 Jun 2021 01:36:04 +0000 Subject: [PATCH] minimalistic diff to use %ld instead of %d for ptrdiff printing --- gnu/usr.bin/binutils-2.17/bfd/doc/chew.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/binutils-2.17/bfd/doc/chew.c b/gnu/usr.bin/binutils-2.17/bfd/doc/chew.c index 542fc2feb70..d81eacde4f5 100644 --- a/gnu/usr.bin/binutils-2.17/bfd/doc/chew.c +++ b/gnu/usr.bin/binutils-2.17/bfd/doc/chew.c @@ -472,8 +472,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++; } @@ -1559,7 +1559,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; } -- 2.20.1