summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_list.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-06-28 23:52:07 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-06-28 23:52:07 +0300
commit52f79c3e531ec64ddd81e2467e0081616e71a7c8 (patch)
tree1b8692dc229dabf4e6cb41a3259c7244958907ae /src/nxt_list.h
parente4afc6ae9871d7e2cd13c81f2a7fe1535ea574c5 (diff)
downloadunit-52f79c3e531ec64ddd81e2467e0081616e71a7c8.tar.gz
unit-52f79c3e531ec64ddd81e2467e0081616e71a7c8.tar.bz2
Fixed building on Solaris broken in changeset 4077decf847b.
Diffstat (limited to 'src/nxt_list.h')
-rw-r--r--src/nxt_list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_list.h b/src/nxt_list.h
index 3bb2b139..f400a356 100644
--- a/src/nxt_list.h
+++ b/src/nxt_list.h
@@ -61,7 +61,7 @@ nxt_list_elt(nxt_list_t *list, nxt_uint_t n)
while (part != NULL) {
if (n < (nxt_uint_t) part->nelts) {
- return ((void *) (nxt_list_data(part) + n * (list)->size));
+ return nxt_pointer_to(nxt_list_data(part), n * (list)->size);
}
n -= (nxt_uint_t) part->nelts;
@@ -103,7 +103,7 @@ NXT_EXPORT void *nxt_list_next(nxt_list_t *list, nxt_list_next_t *next);
#define \
nxt_list_next_value(list, next) \
- ((void *) (nxt_list_data((next)->part) + (next)->elt * (list)->size))
+ (nxt_pointer_to(nxt_list_data((next)->part), (next)->elt * (list)->size))
nxt_inline nxt_uint_t