fix warnings

This commit is contained in:
vanhauser-thc
2022-11-14 21:45:08 +01:00
parent 57257ce656
commit 3cc5019fe4

View File

@ -920,21 +920,7 @@ void fuzz_send_py(void *py_mutator, const u8 *buf, size_t buf_size) {
((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_FUZZ_SEND], py_args); ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_FUZZ_SEND], py_args);
Py_DECREF(py_args); Py_DECREF(py_args);
if (py_value != NULL) { if (py_value != NULL) { Py_DECREF(py_value); }
#if PY_MAJOR_VERSION >= 3
u32 retcnt = (u32)PyLong_AsLong(py_value);
#else
u32 retcnt = PyInt_AsLong(py_value);
#endif
Py_DECREF(py_value);
} else {
PyErr_Print();
FATAL("Call failed");
}
} }