From 6c359b3cc2eef224fc0af22432d32736b62eb0ce Mon Sep 17 00:00:00 2001 From: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri, 23 Jul 2010 14:37:21 +0000 Subject: Cast to unsigned long. 2010-07-23 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/45042 * lto-plugin.c (translate): Cast to unsigned long. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162465 138bc75d-0d04-0410-961f-82ee72b054a4 --- lto-plugin/lto-plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lto-plugin/lto-plugin.c') diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 314759bc462..f2ca90ccf74 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -212,7 +212,8 @@ translate (Elf_Data *symtab, struct plugin_symtab *out) data = parse_table_entry (data, &syms[n], &aux[n]); } - fprintf (stderr, "n = %d len = %d end-data=%lu\n", n, len, end-data); + fprintf (stderr, "n = %d len = %d end-data=%lu\n", n, len, + (unsigned long) (end - data)); assert(n < len); out->nsyms = n; -- cgit v1.2.1