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) {
2727  NAPI_CALL (env , napi_typeof (env , func , & func_type ));
2828
2929  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 ));
3131
3232  napi_value  result ;
3333  if  (func_type  ==  napi_function ) {
@@ -97,7 +97,8 @@ static napi_value DestroyAsyncResource(napi_env env, napi_callback_info info) {
9797  napi_value  async_context_wrap  =  args [0 ];
9898
9999  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 ));
101102  NAPI_CALL (env , napi_async_destroy (env , async_context ));
102103
103104  return  async_context_wrap ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments