diff --git a/src/gdb/symfile.c b/src/gdb/symfile.c index 9ed32adc..b5ddd3bb 100644 --- a/src/gdb/symfile.c +++ b/src/gdb/symfile.c @@ -5543,7 +5543,7 @@ simple_overlay_update_1(struct obj_section *osect) && (cache_ovly_table[i][LMA] == bfd_section_lma(obfd, bsect)) && (cache_ovly_table[i][SIZE] == size)) { - read_target_long_array((cache_ovly_table_base + i * TARGET_LONG_BYTES), + read_target_long_array((cache_ovly_table_base + (unsigned long)i * TARGET_LONG_BYTES), (unsigned int *)cache_ovly_table[i], 4); if ((cache_ovly_table[i][VMA] == bfd_section_vma(obfd, bsect)) && (cache_ovly_table[i][LMA] == bfd_section_lma(obfd, bsect))