Commit 60ceabc8 authored by Stefan Behnel's avatar Stefan Behnel

Remove incorrect function pointer cast again: METH_NOARGS actually takes a second argument.

parent 40c04382
...@@ -2196,9 +2196,6 @@ class CCodeWriter(object): ...@@ -2196,9 +2196,6 @@ class CCodeWriter(object):
method_flags += [method_coexist] method_flags += [method_coexist]
func_ptr = entry.func_cname func_ptr = entry.func_cname
# Add required casts, but try not to shadow real warnings. # Add required casts, but try not to shadow real warnings.
if 'METH_NOARGS' in method_flags:
cast = 'PyNoArgsFunction'
else:
cast = '__Pyx_PyCFunctionFast' if 'METH_FASTCALL' in method_flags else 'PyCFunction' cast = '__Pyx_PyCFunctionFast' if 'METH_FASTCALL' in method_flags else 'PyCFunction'
if 'METH_KEYWORDS' in method_flags: if 'METH_KEYWORDS' in method_flags:
cast += 'WithKeywords' cast += 'WithKeywords'
......
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