diff options
author | Dave Anglin <dave.anglin@nrc.ca> | 2002-08-30 18:36:18 +0000 |
---|---|---|
committer | Dave Anglin <dave.anglin@nrc.ca> | 2002-08-30 18:36:18 +0000 |
commit | e5b45b8395cfa59cf974580a72011f4a07c87377 (patch) | |
tree | 59456eb855a87d505dcd1cd6d8652285efaa07e4 /bfd | |
parent | 5435462c555ab99f8687efda29476de470ebcec1 (diff) | |
download | gdb-e5b45b8395cfa59cf974580a72011f4a07c87377.zip gdb-e5b45b8395cfa59cf974580a72011f4a07c87377.tar.gz gdb-e5b45b8395cfa59cf974580a72011f4a07c87377.tar.bz2 |
* bfd-in.h (align_power): Cast constants to bfd_vma type.
* bfd-in2.h (align_power): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/bfd-in.h | 2 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0fe87c9..5fb4b61 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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". diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 9017440..3941906 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -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; diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 0ab4245..abb6405 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -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; |