From: Roland McGrath Date: Thu, 22 Jul 1993 18:59:43 +0000 (+0000) Subject: (ALIGNED, ROUNDUP): Use `unsigned long int' instead of `unsigned int' for X-Git-Tag: emacs-19.34~11621 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f7a009a5c4708329b2aac04b156822353ce6a186;p=emacs.git (ALIGNED, ROUNDUP): Use `unsigned long int' instead of `unsigned int' for casting addresses and sizes. It matters on the 64-bit Alpha. --- diff --git a/src/ralloc.c b/src/ralloc.c index 6c52b83958e..61fa9d4d68d 100644 --- a/src/ralloc.c +++ b/src/ralloc.c @@ -109,8 +109,9 @@ static int extra_bytes; /* Macros for rounding. Note that rounding to any value is possible by changing the definition of PAGE. */ #define PAGE (getpagesize ()) -#define ALIGNED(addr) (((unsigned int) (addr) & (page_size - 1)) == 0) -#define ROUNDUP(size) (((unsigned int) (size) + page_size - 1) & ~(page_size - 1)) +#define ALIGNED(addr) (((unsigned long int) (addr) & (page_size - 1)) == 0) +#define ROUNDUP(size) (((unsigned long int) (size) + page_size - 1) \ + & ~(page_size - 1)) #define ROUND_TO_PAGE(addr) (addr & (~(page_size - 1))) /* Functions to get and return memory from the system. */