diff options
author | Ilya Tocar <ilya.tocar@intel.com> | 2013-12-30 15:28:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-12-30 15:28:41 +0000 |
commit | 1f93a6d6f3c7a2fcb9e45eea93a09532178da2ab (patch) | |
tree | da2428895d3b5272783a71c48e9b18ecf91d283d /bfd/peXXigen.c | |
parent | 5fba4c0ff52c360549dc8fac4048b54f87e9d267 (diff) | |
download | gdb-1f93a6d6f3c7a2fcb9e45eea93a09532178da2ab.zip gdb-1f93a6d6f3c7a2fcb9e45eea93a09532178da2ab.tar.gz gdb-1f93a6d6f3c7a2fcb9e45eea93a09532178da2ab.tar.bz2 |
* peXXigen.c (rsrc_process_section): Use ptrdiff_t as the type for
pointer arithmetic.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r-- | bfd/peXXigen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index d50db73..1da5a9a 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -3541,7 +3541,7 @@ rsrc_process_section (bfd * abfd, } /* Align the data pointer - we assume 1^2 alignment. */ - data = (bfd_byte *) (((long) (data + 3)) & ~ 3); + data = (bfd_byte *) (((ptrdiff_t) (data + 3)) & ~ 3); rva_bias += data - p; if (data == (dataend - 4)) @@ -3569,7 +3569,7 @@ rsrc_process_section (bfd * abfd, data = rsrc_parse_directory (abfd, type_tables + indx, data, data, dataend, rva_bias, NULL); - data = (bfd_byte *) (((long) (data + 3)) & ~ 3); + data = (bfd_byte *) (((ptrdiff_t) (data + 3)) & ~ 3); rva_bias += data - p; if (data == (dataend - 4)) data = dataend; |