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 {