* bfd-in.h (align_power): Cast constants to bfd_vma type.

* bfd-in2.h (align_power): Likewise.
This commit is contained in:
Dave Anglin 2002-08-30 18:36:18 +00:00
parent 5435462c55
commit e5b45b8395
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2002-08-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
* bfd-in.h (align_power): Cast constants to bfd_vma type.
* bfd-in2.h (align_power): Likewise.
2002-08-30 Alan Modra <amodra@bigpond.net.au>
* Makefile.am: Run "make dep-am".

View file

@ -331,7 +331,7 @@ alent;
/* Object and core file sections. */
#define align_power(addr, align) \
( ((addr) + ((1<<(align))-1)) & (-1 << (align)))
(((addr) + ((bfd_vma) 1 << (align)) - 1) & ((bfd_vma) -1 << (align)))
typedef struct sec *sec_ptr;

View file

@ -337,7 +337,7 @@ alent;
/* Object and core file sections. */
#define align_power(addr, align) \
( ((addr) + ((1<<(align))-1)) & (-1 << (align)))
(((addr) + ((bfd_vma) 1 << (align)) - 1) & ((bfd_vma) -1 << (align)))
typedef struct sec *sec_ptr;