* bfd-in.h (align_power): Cast constants to bfd_vma type.
* bfd-in2.h (align_power): Likewise.
This commit is contained in:
parent
5435462c55
commit
e5b45b8395
3 changed files with 7 additions and 2 deletions
|
@ -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".
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue