From 0359e808fd2db8900a9ee07b44c288662094ae8b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 27 Dec 2005 11:55:37 +0000 Subject: [PATCH] PR 1300 * config/tc-arm.c (md_apply_fix): Fix casts to match type in printf format. --- gas/ChangeLog | 6 ++++++ gas/config/tc-arm.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index eecd4ef..47b1e07 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2005-12-27 James Troup + + PR 1300 + * config/tc-arm.c (md_apply_fix): Fix casts to match type in + printf format. + 2005-12-27 Alan Modra * Makefile.am: Run "make dep-am". diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index a2baa32..4ea80b9 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -11747,8 +11747,9 @@ md_apply_fix (fixS * fixP, if (value & 3) as_bad_where (fixP->fx_file, fixP->fx_line, _("invalid offset, target not word aligned (0x%08lX)"), - (((unsigned int) fixP->fx_frag->fr_address - + (unsigned int) fixP->fx_where) & ~3) + value); + (((unsigned long) fixP->fx_frag->fr_address + + (unsigned long) fixP->fx_where) & ~3) + + (unsigned long) value); if (value & ~0x3fc) as_bad_where (fixP->fx_file, fixP->fx_line, -- 2.7.4