From 2881ec96d68761d0c02bd6559ae9af5c1cefb140 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 6 Jul 1997 23:24:28 +0000 Subject: [PATCH] (update_dynamic_symbols): Add cast when setting reladdr. --- src/unexalpha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2