summaryrefslogtreecommitdiff
path: root/src/ralloc.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1993-07-22 18:59:43 +0000
committerRoland McGrath <roland@gnu.org>1993-07-22 18:59:43 +0000
commit017ebc378c8715307fab7dc22c72443665acdcc2 (patch)
tree0deb20fb8ecdeee93857e1e8d559a881aa9d1012 /src/ralloc.c
parent1b07924597f03d29a6cba7fd6cf2c530b811a809 (diff)
downloademacs-017ebc378c8715307fab7dc22c72443665acdcc2.tar.gz
(ALIGNED, ROUNDUP): Use `unsigned long int' instead of `unsigned int' for
casting addresses and sizes. It matters on the 64-bit Alpha.
Diffstat (limited to 'src/ralloc.c')
-rw-r--r--src/ralloc.c5
1 files 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. */