diff options
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 93d5dde..903b9bd 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -87,7 +87,7 @@ add_to_objfile_sections (abfd, asect, objfile_p_char) section.addr = bfd_section_vma (abfd, asect); section.endaddr = section.addr + bfd_section_size (abfd, asect); obstack_grow (&objfile->psymbol_obstack, §ion, sizeof(section)); - objfile->sections_end = (struct obj_section *) (((int) objfile->sections_end) + 1); + objfile->sections_end = (struct obj_section *) (((unsigned long) objfile->sections_end) + 1); } /* Builds a section table for OBJFILE. @@ -104,7 +104,7 @@ build_objfile_section_table (objfile) bfd_map_over_sections (objfile->obfd, add_to_objfile_sections, (char *)objfile); objfile->sections = (struct obj_section *) obstack_finish (&objfile->psymbol_obstack); - objfile->sections_end = objfile->sections + (int) objfile->sections_end; + objfile->sections_end = objfile->sections + (unsigned long) objfile->sections_end; return(0); } |