From: eck Date: Wed, 21 Mar 1990 13:33:14 +0000 (+0000) Subject: fixed wrong assertion X-Git-Tag: release-5-5~1773 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0296dc237128622ca194607bffff08651011c3cb;p=ack.git fixed wrong assertion --- diff --git a/modules/src/malloc/mal.c b/modules/src/malloc/mal.c index dd8d221f6..c4cab133c 100644 --- a/modules/src/malloc/mal.c +++ b/modules/src/malloc/mal.c @@ -96,7 +96,6 @@ malloc(n) } p = SBRK((int)req); - assert((size_type)p == align((size_type)p)); if (p == ILL_BREAK) { req = n + mallink_size(); p = SBRK((int)req); @@ -127,6 +126,7 @@ malloc(n) #endif STORE } else { + assert((size_type)p == align((size_type)p)); ml = create_chunk(p, req); } check_mallinks("suitable_chunk, extended"); diff --git a/modules/src/malloc/param.h b/modules/src/malloc/param.h index abeb3a146..fba5dc8fa 100644 --- a/modules/src/malloc/param.h +++ b/modules/src/malloc/param.h @@ -50,7 +50,7 @@ Otherwise, "sbrk" is called directly. */ -#define ALIGNMENT 8 +#define ALIGNMENT 8 /* alignment common to all types */ #define LOG_MIN_SIZE 3 #define LOG_MAX_SIZE 24