Commit f49e4461 authored by Stefan Behnel's avatar Stefan Behnel

Fix some comments.

parent 82b1bf61
...@@ -2194,10 +2194,9 @@ class CCodeWriter(object): ...@@ -2194,10 +2194,9 @@ class CCodeWriter(object):
if entry.is_special: if entry.is_special:
method_flags += [method_coexist] method_flags += [method_coexist]
func_ptr = entry.func_cname func_ptr = entry.func_cname
# Add extra casts, but try not to shadow real warnings. # Add required casts, but try not to shadow real warnings.
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:
# Need an extra cast
cast += 'WithKeywords' cast += 'WithKeywords'
if cast != 'PyCFunction': if cast != 'PyCFunction':
func_ptr = '(void*)(%s)%s' % (cast, func_ptr) func_ptr = '(void*)(%s)%s' % (cast, func_ptr)
......
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