File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -476,9 +476,9 @@ context_set_tls_authentication(getdns_context *context, PyObject *py_value)
476476        return  -1 ;
477477    }
478478#if  PY_MAJOR_VERSION  >= 3 
479-     if  ((value  =  (getdns_tls_authentication_t )PyLong_AsLong (py_value )) <  0 )  {
479+     if  ((int )( value  =  (getdns_tls_authentication_t )PyLong_AsLong (py_value )) <  0 )  {
480480#else 
481-     if  ((value  =  (getdns_tls_authentication_t )PyInt_AsLong (py_value )) <  0 )  {
481+     if  ((int )( value  =  (getdns_tls_authentication_t )PyInt_AsLong (py_value )) <  0 )  {
482482#endif 
483483        PyErr_SetString (getdns_error , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
484484        return  -1 ;
@@ -879,7 +879,7 @@ context_set_dns_transport_list(getdns_context *context, PyObject *py_value)
879879                PyErr_SetString (getdns_error , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
880880                return  -1 ;
881881            }
882-             transports [i ] =  transport ;
882+             transports [i ] =  ( getdns_transport_list_t ) transport ;
883883        }
884884        else   {
885885            PyErr_SetString (getdns_error , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments