summaryrefslogtreecommitdiff
path: root/src/unexalpha.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-06 23:24:28 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-06 23:24:28 +0000
commit2881ec96d68761d0c02bd6559ae9af5c1cefb140 (patch)
treed8c1eab345a086ce72d1b9d85fe524fc5e303bea /src/unexalpha.c
parentcfc198e540dac946e528477c421f395c56d0cc05 (diff)
downloademacs-2881ec96d68761d0c02bd6559ae9af5c1cefb140.tar.gz
emacs-2881ec96d68761d0c02bd6559ae9af5c1cefb140.tar.bz2
emacs-2881ec96d68761d0c02bd6559ae9af5c1cefb140.zip
(update_dynamic_symbols): Add cast when setting reladdr.
Diffstat (limited to 'src/unexalpha.c')
-rw-r--r--src/unexalpha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unexalpha.c b/src/unexalpha.c
index c0d3b359b62..df77236b573 100644
--- a/src/unexalpha.c
+++ b/src/unexalpha.c
@@ -463,7 +463,7 @@ update_dynamic_symbols (old, new_name, new, aout)
4. len is the size of the object reference in bytes --
currently only 4 (long) and 8 (quad) are supported.
*/
- register unsigned long reladdr = rd_base[i].addr - old_data_scnhdr.s_vaddr;
+ register unsigned long reladdr = (long)rd_base[i].addr - old_data_scnhdr.s_vaddr;
char * oldref = old + old_data_scnhdr.s_scnptr + reladdr;
unsigned long newref = aout.tsize + reladdr;
int len;