aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath1993-07-22 18:59:43 +0000
committerRoland McGrath1993-07-22 18:59:43 +0000
commitf7a009a5c4708329b2aac04b156822353ce6a186 (patch)
tree4c093f14ec61de12bbb689d953387f99c48a133e /src
parentb1814de2503daf2c324cd9c8cef57cb6640b6d85 (diff)
downloademacs-f7a009a5c4708329b2aac04b156822353ce6a186.tar.gz
emacs-f7a009a5c4708329b2aac04b156822353ce6a186.zip
(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')
-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;
109/* Macros for rounding. Note that rounding to any value is possible 109/* Macros for rounding. Note that rounding to any value is possible
110 by changing the definition of PAGE. */ 110 by changing the definition of PAGE. */
111#define PAGE (getpagesize ()) 111#define PAGE (getpagesize ())
112#define ALIGNED(addr) (((unsigned int) (addr) & (page_size - 1)) == 0) 112#define ALIGNED(addr) (((unsigned long int) (addr) & (page_size - 1)) == 0)
113#define ROUNDUP(size) (((unsigned int) (size) + page_size - 1) & ~(page_size - 1)) 113#define ROUNDUP(size) (((unsigned long int) (size) + page_size - 1) \
114 & ~(page_size - 1))
114#define ROUND_TO_PAGE(addr) (addr & (~(page_size - 1))) 115#define ROUND_TO_PAGE(addr) (addr & (~(page_size - 1)))
115 116
116/* Functions to get and return memory from the system. */ 117/* Functions to get and return memory from the system. */