Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-05-20 19:37:55 +0400
committerIgor Sysoev <igor@sysoev.ru>2003-05-20 19:37:55 +0400
commit1c13c662f0ae8066d1d4849b4158d7459a4c7822 (patch)
treea8e517c0d41e922b1d3744d869edc60ed540b2d9 /src/core/ngx_array.c
parenta98301160de4c12f455cca8f78509f2e04626c0b (diff)
nginx-0.0.1-2003-05-20-19:37:55 import
Diffstat (limited to 'src/core/ngx_array.c')
-rw-r--r--src/core/ngx_array.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_array.c b/src/core/ngx_array.c
index 0043929e9..dd91141c2 100644
--- a/src/core/ngx_array.c
+++ b/src/core/ngx_array.c
@@ -29,7 +29,7 @@ void ngx_destroy_array(ngx_array_t *a)
p = a->pool;
- if (a->elts + a->size * a->nalloc == p->last) {
+ if ((char *) a->elts + a->size * a->nalloc == p->last) {
p->last -= a->size * a->nalloc;
}
@@ -49,7 +49,7 @@ void *ngx_push_array(ngx_array_t *a)
p = a->pool;
/* array allocation is the last in the pool */
- if (a->elts + a->size * a->nelts == p->last
+ if ((char *) a->elts + a->size * a->nelts == p->last
&& (unsigned) (p->end - p->last) >= a->size)
{
p->last += a->size;
@@ -65,7 +65,7 @@ void *ngx_push_array(ngx_array_t *a)
}
}
- elt = a->elts + a->size * a->nelts;
+ elt = (char *) a->elts + a->size * a->nelts;
a->nelts++;
return elt;