summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-01-18 14:13:42 +0000
committerNick Clifton <nickc@redhat.com>2011-01-18 14:13:42 +0000
commit3ad272eea80711a63dee15590e17b273e70eda57 (patch)
tree07e91f153b8f0babff0170e9793d9319bd9bd05b /bfd/coffcode.h
parentbe228c3a7c282e54e2023563a520373717a56c30 (diff)
downloadbinutils-redhat-3ad272eea80711a63dee15590e17b273e70eda57.tar.gz
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 70f98512f9..5500f01e74 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;