summaryrefslogtreecommitdiffhomepage
path: root/src/nginext/nxt_go_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nginext/nxt_go_array.c')
-rw-r--r--src/nginext/nxt_go_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nginext/nxt_go_array.c b/src/nginext/nxt_go_array.c
index a788811a..f409cb10 100644
--- a/src/nginext/nxt_go_array.c
+++ b/src/nginext/nxt_go_array.c
@@ -57,7 +57,7 @@ nxt_go_array_add(nxt_array_t *array)
array->nalloc = new_alloc;
}
- p = (char *) array->elts + array->size * array->nelts;
+ p = nxt_pointer_to(array->elts, array->size * array->nelts);
array->nelts++;
return p;