aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-01-18 14:13:43 +0000
committerNick Clifton <nickc@redhat.com>2011-01-18 14:13:43 +0000
commitd68cd58c009af595600d41c775096dcb138ce6af (patch)
tree3f27ffca77b2478a8163e95f5f7bd3fdd5a97269 /bfd/coffcode.h
parent4a58c4bdc96a4d10cbb889127e75245bff7352f8 (diff)
downloadgdb-d68cd58c009af595600d41c775096dcb138ce6af.zip
gdb-d68cd58c009af595600d41c775096dcb138ce6af.tar.gz
gdb-d68cd58c009af595600d41c775096dcb138ce6af.tar.bz2
Fix compilation for mingw64.
* coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate typecast to avoid warning. * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type usage. * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead of long for pointer to avoid warning. (elfNN_ia64_relax_brl): Idem. (elfNN_ia64_install_value): Idem. * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 70f9851..5500f01 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4852,7 +4852,7 @@ coff_slurp_symbol_table (bfd * abfd)
to the symbol instead of the index. FIXME: This
should use a union. */
src->u.syment.n_value =
- (long) (native_symbols + src->u.syment.n_value);
+ (long) (intptr_t) (native_symbols + src->u.syment.n_value);
dst->symbol.value = src->u.syment.n_value;
src->fix_value = 1;
break;