fixed possible non-sign-extension problem
authorceriel <none@none>
Thu, 6 Dec 1990 11:34:50 +0000 (11:34 +0000)
committerceriel <none@none>
Thu, 6 Dec 1990 11:34:50 +0000 (11:34 +0000)
lang/cem/libcc/gen/malloc.c

index 0520ab7..e7d2d8d 100644 (file)
@@ -20,7 +20,7 @@
 #define BRKSIZE                4096
 #endif
 #define        PTRSIZE         sizeof(char *)
-#define Align(x,a)     (((x) + (a - 1)) & ~(a - 1))
+#define Align(x,a)     (((x) + (a - 1)) & ~(ptrint)(a - 1))
 #define NextSlot(p)    (* (char **) ((p) - PTRSIZE))
 #define NextFree(p)    (* (char **) (p))