]> git.eshelyaron.com Git - emacs.git/commitdiff
(ALIGNED, ROUNDUP): Use `unsigned long int' instead of `unsigned int' for
authorRoland McGrath <roland@gnu.org>
Thu, 22 Jul 1993 18:59:43 +0000 (18:59 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 22 Jul 1993 18:59:43 +0000 (18:59 +0000)
casting addresses and sizes.  It matters on the 64-bit Alpha.

src/ralloc.c

index 6c52b83958e53341b4ea3dfc6a71266c30eb0adb..61fa9d4d68d2119b367e51cfc7c89d984d7f9ce5 100644 (file)
@@ -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)))
 \f
 /* Functions to get and return memory from the system.  */