aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.c
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2002-04-09 15:26:59 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2002-04-09 15:26:59 +0000
commit2ed5f585e4f1b7f0c719d704807f994938613a4c (patch)
tree426657b7e9d9363b2be4db8e06ec0b2c68ade54a /gas/config/tc-sh.c
parentc80b2f7704c2a15290896b4db5db9be07b8fcc57 (diff)
downloadgdb-2ed5f585e4f1b7f0c719d704807f994938613a4c.zip
gdb-2ed5f585e4f1b7f0c719d704807f994938613a4c.tar.gz
gdb-2ed5f585e4f1b7f0c719d704807f994938613a4c.tar.bz2
* config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
endian hosts.
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r--gas/config/tc-sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 5afaad8..1f33e10 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -3310,7 +3310,7 @@ md_apply_fix3 (fixP, valP, seg)
char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
int lowbyte = target_big_endian ? 1 : 0;
int highbyte = target_big_endian ? 0 : 1;
- long val = * (long *) valP;
+ long val = (long) *valP;
long max, min;
int shift;