Applied nxt_pointer_to() and nxt_value_at() where possible.

This commit is contained in:
Valentin Bartenev
2017-06-27 17:27:18 +03:00
parent f86c803098
commit dfd3cc8c0e
16 changed files with 28 additions and 37 deletions

View File

@@ -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;