aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2016-03-04 14:57:21 +0300
committerIgor Sysoev <igor@sysoev.ru>2016-03-04 14:57:21 +0300
commit4030015ce7806d0c36b42678cbc460c7b2296349 (patch)
tree7052de22a0a15a699d95069137981ae193c2f1d1 /nginx/ngx_http_js_module.c
parent9f21bc617d2c345b031b9325a19bb5142f46fe2d (diff)
downloadnjs-4030015ce7806d0c36b42678cbc460c7b2296349.tar.gz
njs-4030015ce7806d0c36b42678cbc460c7b2296349.zip
Fixed building by GCC 4.1.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index d610bb9c..94fd858d 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -449,7 +449,8 @@ ngx_http_js_vm_run(ngx_http_request_t *r, ngx_http_js_ctx_t *js,
cln->handler = ngx_http_js_cleanup_mem_cache_pool;
cln->data = mcp;
- nvm = njs_vm_clone(js->vm, mcp, (void **) &r);
+ /* The double cast is required by GCC 4.1. */
+ nvm = njs_vm_clone(js->vm, mcp, (void **) (void *) &r);
if (nvm == NULL) {
return NGX_ERROR;
}