From f7a009a5c4708329b2aac04b156822353ce6a186 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 22 Jul 1993 18:59:43 +0000 Subject: [PATCH] (ALIGNED, ROUNDUP): Use `unsigned long int' instead of `unsigned int' for casting addresses and sizes. It matters on the 64-bit Alpha. --- src/ralloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. */ -- 2.39.5