From dfd3cc8c0eb7f3479ee08b5e518abd264da56a29 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Tue, 27 Jun 2017 17:27:18 +0300 Subject: Applied nxt_pointer_to() and nxt_value_at() where possible. --- src/nxt_mem_zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nxt_mem_zone.c') diff --git a/src/nxt_mem_zone.c b/src/nxt_mem_zone.c index eacb455d..9214a422 100644 --- a/src/nxt_mem_zone.c +++ b/src/nxt_mem_zone.c @@ -764,7 +764,7 @@ nxt_mem_zone_find_free_block(nxt_mem_zone_t *zone, nxt_rbtree_node_t *node, } else { /* pages < block->size */ aligned += pages << zone->page_size_shift; - end = (u_char *) block + (block->size << zone->page_size_shift); + end = nxt_pointer_to(block, block->size << zone->page_size_shift); if (aligned <= end) { return block; -- cgit