# HG changeset patch # User Roland McGrath # Date 743367583 0 # Node ID df4d091e603edcb2a98b1bca4bd4dc76716e01af # Parent edf8c9e14e0297edf15773dbf5b8dbbb3f156a1c (ALIGNED, ROUNDUP): Use `unsigned long int' instead of `unsigned int' for casting addresses and sizes. It matters on the 64-bit Alpha. diff -r edf8c9e14e02 -r df4d091e603e src/ralloc.c --- a/src/ralloc.c Thu Jul 22 18:55:19 1993 +0000 +++ b/src/ralloc.c Thu Jul 22 18:59:43 1993 +0000 @@ -109,8 +109,9 @@ /* 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. */