From e5b45b8395cfa59cf974580a72011f4a07c87377 Mon Sep 17 00:00:00 2001 From: Dave Anglin Date: Fri, 30 Aug 2002 18:36:18 +0000 Subject: * bfd-in.h (align_power): Cast constants to bfd_vma type. * bfd-in2.h (align_power): Likewise. --- bfd/bfd-in2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/bfd-in2.h') 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; -- cgit v1.1