diff options
| author | cgd <cgd@NetBSD.org> | 1995-04-23 08:35:30 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1995-04-23 08:35:30 +0000 |
| commit | 0f099d92af5d2999cac9573e2c76e0b4d55ef183 (patch) | |
| tree | 9e617e8d57624b4f5d5e851370833a3683645858 /gnu/lib/libmalloc | |
| parent | 81584a34e6bac7fee98ff30281cfdcccfdfca263 (diff) | |
changes to make the src/gnu code compile happily on the alpha:
Mostly casts here and there to kill warnings or bugs. occasional
addition of prototypes and/or changes to bring protos into scope.
Diffstat (limited to 'gnu/lib/libmalloc')
| -rw-r--r-- | gnu/lib/libmalloc/ralloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/lib/libmalloc/ralloc.c b/gnu/lib/libmalloc/ralloc.c index 78b9f62fec0..6eef29f7d4c 100644 --- a/gnu/lib/libmalloc/ralloc.c +++ b/gnu/lib/libmalloc/ralloc.c @@ -111,8 +111,8 @@ 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) (addr) & (page_size - 1)) == 0) +#define ROUNDUP(size) (((unsigned long) (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. */ |
