Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
60ceabc8
Commit
60ceabc8
authored
6 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove incorrect function pointer cast again: METH_NOARGS actually takes a second argument.
parent
40c04382
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
Cython/Compiler/Code.py
Cython/Compiler/Code.py
+3
-6
No files found.
Cython/Compiler/Code.py
View file @
60ceabc8
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment