File tree 1 file changed +3
-3
lines changed
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)
476
476
return -1 ;
477
477
}
478
478
#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 ) {
480
480
#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 ) {
482
482
#endif
483
483
PyErr_SetString (getdns_error , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
484
484
return -1 ;
@@ -879,7 +879,7 @@ context_set_dns_transport_list(getdns_context *context, PyObject *py_value)
879
879
PyErr_SetString (getdns_error , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
880
880
return -1 ;
881
881
}
882
- transports [i ] = transport ;
882
+ transports [i ] = ( getdns_transport_list_t ) transport ;
883
883
}
884
884
else {
885
885
PyErr_SetString (getdns_error , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
You can’t perform that action at this time.
0 commit comments