@@ -88,7 +88,7 @@ context_set_timeout(getdns_context *context, PyObject *py_value)
8888 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
8989 return -1 ;
9090 }
91- if ((value = PyInt_AsLong (py_value )) < 0 ) {
91+ if ((long )( value = PyInt_AsLong (py_value )) < 0 ) {
9292 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
9393 return -1 ;
9494 }
@@ -112,7 +112,7 @@ context_set_resolution_type(getdns_context *context, PyObject *py_value)
112112 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
113113 return -1 ;
114114 }
115- if ((value = PyInt_AsLong (py_value )) < 0 ) {
115+ if ((long )( value = PyInt_AsLong (py_value )) < 0 ) {
116116 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
117117 return -1 ;
118118 }
@@ -140,7 +140,7 @@ context_set_dns_transport(getdns_context *context, PyObject *py_value)
140140 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
141141 return -1 ;
142142 }
143- if ((value = PyInt_AsLong (py_value )) < 0 ) {
143+ if ((long )( value = PyInt_AsLong (py_value )) < 0 ) {
144144 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
145145 return -1 ;
146146 }
@@ -195,7 +195,7 @@ context_set_follow_redirects(getdns_context *context, PyObject *py_value)
195195 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
196196 return -1 ;
197197 }
198- if ((value = PyInt_AsLong (py_value )) < 0 ) {
198+ if ((long )( value = PyInt_AsLong (py_value )) < 0 ) {
199199 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
200200 return -1 ;
201201 }
@@ -224,7 +224,7 @@ context_set_append_name(getdns_context *context, PyObject *py_value)
224224 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
225225 return -1 ;
226226 }
227- if ((value = PyInt_AsLong (py_value )) < 0 ) {
227+ if ((long )( value = PyInt_AsLong (py_value )) < 0 ) {
228228 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
229229 return -1 ;
230230 }
@@ -256,7 +256,7 @@ context_set_dnssec_allowed_skew(getdns_context *context, PyObject *py_value)
256256 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
257257 return -1 ;
258258 }
259- if ((value = PyInt_AsLong (py_value )) < 0 ) {
259+ if ((long )( value = PyInt_AsLong (py_value )) < 0 ) {
260260 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
261261 return -1 ;
262262 }
@@ -280,7 +280,7 @@ context_set_edns_maximum_udp_payload_size(getdns_context *context, PyObject *py_
280280 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
281281 return -1 ;
282282 }
283- if ((value = PyInt_AsLong (py_value )) < 0 ) {
283+ if ((long )( value = PyInt_AsLong (py_value )) < 0 ) {
284284 PyErr_SetString (PyExc_AttributeError , GETDNS_RETURN_INVALID_PARAMETER_TEXT );
285285 return -1 ;
286286 }
0 commit comments