From cbdb0088c5867e16b724d7025c8a2e1415a61f6f Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 6 Dec 1990 11:34:50 +0000 Subject: [PATCH] fixed possible non-sign-extension problem --- lang/cem/libcc/gen/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/cem/libcc/gen/malloc.c b/lang/cem/libcc/gen/malloc.c index 0520ab79..e7d2d8d3 100644 --- a/lang/cem/libcc/gen/malloc.c +++ b/lang/cem/libcc/gen/malloc.c @@ -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))