Commit 77ca9310 authored by Stefan Behnel's avatar Stefan Behnel

Ignore exact function pointer type in PyCFunction pointer comparison since...

Ignore exact function pointer type in PyCFunction pointer comparison since there is no use in figuring out the correct cast here.
parent 60ceabc8
......@@ -4371,7 +4371,7 @@ class OverrideCheckNode(StatNode):
code.put_gotref(func_node_temp)
is_builtin_function_or_method = "PyCFunction_Check(%s)" % func_node_temp
is_overridden = "(PyCFunction_GET_FUNCTION(%s) != (PyCFunction)%s)" % (
is_overridden = "(PyCFunction_GET_FUNCTION(%s) != (PyCFunction)(void*)%s)" % (
func_node_temp, self.py_func.entry.func_cname)
code.putln("if (!%s || %s) {" % (is_builtin_function_or_method, is_overridden))
self.body.generate_execution_code(code)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment