From: ceriel Date: Thu, 6 Dec 1990 11:34:50 +0000 (+0000) Subject: fixed possible non-sign-extension problem X-Git-Tag: release-5-5~1359 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c5c6267b1d9a598d1355ae71ca0680347a4c7bb0;p=ack.git fixed possible non-sign-extension problem --- 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))