From: ceriel Date: Tue, 24 Oct 1989 12:58:23 +0000 (+0000) Subject: corrected assertions X-Git-Tag: release-5-5~2169 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=95cfd33824c6c4c2718ac1f072a27a96b63d8f81;p=ack.git corrected assertions --- diff --git a/modules/src/malloc/log.c b/modules/src/malloc/log.c index 3d6bce96d..f8dee7d65 100644 --- a/modules/src/malloc/log.c +++ b/modules/src/malloc/log.c @@ -25,7 +25,7 @@ link_free_chunk(ml) register unsigned int n = size_of(ml); register mallink *ml1; - assert(n < (1 << LOG_MAX_SIZE)); + assert(n < (1L << LOG_MAX_SIZE)); do { n >>= 1; @@ -61,7 +61,7 @@ unlink_free_chunk(ml) register mallink **mlp = &free_list[-1]; register unsigned int n = size_of(ml); - assert(n < (1 << LOG_MAX_SIZE)); + assert(n < (1L << LOG_MAX_SIZE)); do { n >>= 1; mlp++; diff --git a/modules/src/malloc/mal.c b/modules/src/malloc/mal.c index 253c7e581..7043f19e8 100644 --- a/modules/src/malloc/mal.c +++ b/modules/src/malloc/mal.c @@ -68,7 +68,7 @@ malloc(n) */ register unsigned int n1 = n; - assert(n1 < (1 << LOG_MAX_SIZE)); + assert(n1 < (1L << LOG_MAX_SIZE)); min_class = 0; do {