diff options
author | Nick Clifton <nickc@redhat.com> | 2013-12-18 10:30:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-12-18 10:30:25 +0000 |
commit | b9e95fa2d182d00eefd059e38e3d34ae03d4e2ea (patch) | |
tree | 6bd85095a38618a8115e2d0e455134c109e3ace9 /bfd/peXXigen.c | |
parent | 4ac248ca0beb1dfdb56716a440c4558b89fd7b1a (diff) | |
download | fsf-binutils-gdb-b9e95fa2d182d00eefd059e38e3d34ae03d4e2ea.zip fsf-binutils-gdb-b9e95fa2d182d00eefd059e38e3d34ae03d4e2ea.tar.gz fsf-binutils-gdb-b9e95fa2d182d00eefd059e38e3d34ae03d4e2ea.tar.bz2 |
* peXXigen.c (rsrc_print_section): Use ptrdiff_t as the type for
pointer arithmetic.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r-- | bfd/peXXigen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 5e2a876..2a33a77 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -2205,7 +2205,7 @@ rsrc_print_section (bfd * abfd, void * vfile) /* Align data before continuing. */ int align = (1 << section->alignment_power) - 1; - data = (bfd_byte *) (((long) (data + align)) & ~ align); + data = (bfd_byte *) (((ptrdiff_t) (data + align)) & ~ align); rva_bias += data - p; /* For reasons that are unclear .rsrc sections are sometimes created |