From 0af1713e7cd57b52f6c81f73aa58934132198880 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 30 Jul 2008 04:34:58 +0000 Subject: Silence gcc printf warnings --- opcodes/i386-dis.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'opcodes/i386-dis.c') diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 4f3c9e0..c0688cf 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -1,6 +1,7 @@ /* Print i386 instructions for GDB, the GNU debugger. Copyright 1988, 1989, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 + Free Software Foundation, Inc. This file is part of the GNU opcodes library. @@ -11234,7 +11235,7 @@ print_displacement (char *buf, bfd_vma disp) buf[j++] = '0'; buf[j++] = 'x'; - sprintf_vma (tmp, val); + sprintf_vma (tmp, (bfd_vma) val); for (i = 0; tmp[i] == '0'; i++) continue; if (tmp[i] == '\0') -- cgit v1.1