]> git.kaiwu.me - njs.git/commitdiff
Fixed building by GCC 4.1.
authorIgor Sysoev <igor@sysoev.ru>
Fri, 4 Mar 2016 11:57:21 +0000 (14:57 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 4 Mar 2016 11:57:21 +0000 (14:57 +0300)
nginx/ngx_http_js_module.c

index d610bb9c9b9e8019ef3852c7365447f8428c2e41..94fd858d50607248af7ae22b05397457ce8c351a 100644 (file)
@@ -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;
     }