diff options
| author | Richard M. Stallman | 1997-07-06 23:24:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-06 23:24:28 +0000 |
| commit | 2881ec96d68761d0c02bd6559ae9af5c1cefb140 (patch) | |
| tree | d8c1eab345a086ce72d1b9d85fe524fc5e303bea /src | |
| parent | cfc198e540dac946e528477c421f395c56d0cc05 (diff) | |
| download | emacs-2881ec96d68761d0c02bd6559ae9af5c1cefb140.tar.gz emacs-2881ec96d68761d0c02bd6559ae9af5c1cefb140.zip | |
(update_dynamic_symbols): Add cast when setting reladdr.
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexalpha.c | 2 |
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) | |||
| 463 | 4. len is the size of the object reference in bytes -- | 463 | 4. len is the size of the object reference in bytes -- |
| 464 | currently only 4 (long) and 8 (quad) are supported. | 464 | currently only 4 (long) and 8 (quad) are supported. |
| 465 | */ | 465 | */ |
| 466 | register unsigned long reladdr = rd_base[i].addr - old_data_scnhdr.s_vaddr; | 466 | register unsigned long reladdr = (long)rd_base[i].addr - old_data_scnhdr.s_vaddr; |
| 467 | char * oldref = old + old_data_scnhdr.s_scnptr + reladdr; | 467 | char * oldref = old + old_data_scnhdr.s_scnptr + reladdr; |
| 468 | unsigned long newref = aout.tsize + reladdr; | 468 | unsigned long newref = aout.tsize + reladdr; |
| 469 | int len; | 469 | int len; |