aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-a29k.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-11-09 01:04:56 +0000
committerIan Lance Taylor <ian@airs.com>1995-11-09 01:04:56 +0000
commit1b3b0c0343cb794db4efcdac42499dc5f304c11d (patch)
treeba42471b4794b0060e6cf57052a77d8b2844f2ad /bfd/coff-a29k.c
parent6a649eda40ae1e08ee555950d96f613ee2bb5dec (diff)
downloadgdb-1b3b0c0343cb794db4efcdac42499dc5f304c11d.zip
gdb-1b3b0c0343cb794db4efcdac42499dc5f304c11d.tar.gz
gdb-1b3b0c0343cb794db4efcdac42499dc5f304c11d.tar.bz2
Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
* coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than 0xffff0000.
Diffstat (limited to 'bfd/coff-a29k.c')
-rw-r--r--bfd/coff-a29k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c
index 4673041..633899d 100644
--- a/bfd/coff-a29k.c
+++ b/bfd/coff-a29k.c
@@ -45,7 +45,7 @@ static boolean coff_a29k_adjust_symndx
#define EXTRACT_HWORD(WORD) \
((((WORD) & 0x00ff0000) >> 8) | ((WORD)& 0xff))
#define SIGN_EXTEND_HWORD(HWORD) \
- ((HWORD) & 0x8000 ? (HWORD)|0xffff0000 : (HWORD))
+ ((HWORD) & 0x8000 ? (HWORD)|(~0xffffL) : (HWORD))
/* Provided the symbol, returns the value reffed */
static long