summaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2002-08-30 18:36:18 +0000
committerDave Anglin <dave.anglin@nrc.ca>2002-08-30 18:36:18 +0000
commitbff664b9016d9d65cb82b59c7e61e9cb365aa953 (patch)
tree5233c380888942e37fd6c3f0d77eb46e1e52af47 /bfd/bfd-in.h
parent35036b49b835d8f9feb7a42c5ae9f67b2a119f98 (diff)
downloadgdb-bff664b9016d9d65cb82b59c7e61e9cb365aa953.tar.gz
* bfd-in.h (align_power): Cast constants to bfd_vma type.
* bfd-in2.h (align_power): Likewise.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 9017440c2a1..3941906979e 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;