aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
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;
}