From c5c6267b1d9a598d1355ae71ca0680347a4c7bb0 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 0520ab798..e7d2d8d3a 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)) -- 2.34.1