* config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
val assignment.
This commit is contained in:
parent
d2b57b9476
commit
451a1fc524
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-11-17 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
|
||||
val assignment.
|
||||
|
||||
2001-11-16 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* config/tc-m68k.c (md_apply_fix3): Change val back to a signed type.
|
||||
|
|
|
@ -2978,7 +2978,10 @@ md_apply_fix3 (fixP, valP, seg)
|
|||
valueT *valP;
|
||||
segT seg;
|
||||
{
|
||||
long val = * (long *) valP;
|
||||
/* This assignment truncates upper bits if valueT is 64 bits (as with
|
||||
--enable-64-bit-bfd), which is fine here, though we cast to avoid
|
||||
compiler any warnings. */
|
||||
long val = (long) *valP;
|
||||
char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
|
||||
|
||||
if (fixP->fx_addsy == 0 && !fixP->fx_pcrel)
|
||||
|
|
Loading…
Reference in a new issue