File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/node-api/test_async_context Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ static napi_value MakeCallback(napi_env env, napi_callback_info info) {
27
27
NAPI_CALL (env , napi_typeof (env , func , & func_type ));
28
28
29
29
napi_async_context context ;
30
- NAPI_CALL (env , napi_unwrap (env , async_context_wrap , & context ));
30
+ NAPI_CALL (env , napi_unwrap (env , async_context_wrap , ( void * * ) & context ));
31
31
32
32
napi_value result ;
33
33
if (func_type == napi_function ) {
@@ -97,7 +97,8 @@ static napi_value DestroyAsyncResource(napi_env env, napi_callback_info info) {
97
97
napi_value async_context_wrap = args [0 ];
98
98
99
99
napi_async_context async_context ;
100
- NAPI_CALL (env , napi_remove_wrap (env , async_context_wrap , & async_context ));
100
+ NAPI_CALL (env ,
101
+ napi_remove_wrap (env , async_context_wrap , (void * * )& async_context ));
101
102
NAPI_CALL (env , napi_async_destroy (env , async_context ));
102
103
103
104
return async_context_wrap ;
You can’t perform that action at this time.
0 commit comments