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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
a0c2a335
Commit
a0c2a335
authored
Apr 29, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove meaningless default value for SimpleCallNode.is_in_cpp
parent
f1ce1111
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
a0c2a335
...
@@ -5668,7 +5668,6 @@ class SimpleCallNode(CallNode):
...
@@ -5668,7 +5668,6 @@ class SimpleCallNode(CallNode):
# rlocked bool used internally
# rlocked bool used internally
# wlocked bool used internally
# wlocked bool used internally
# tracked_state bool used internally
# tracked_state bool used internally
# is_in_cpp bool used internally
subexprs
=
[
'self'
,
'coerced_self'
,
'function'
,
'args'
,
'arg_tuple'
]
subexprs
=
[
'self'
,
'coerced_self'
,
'function'
,
'args'
,
'arg_tuple'
]
...
@@ -5684,7 +5683,6 @@ class SimpleCallNode(CallNode):
...
@@ -5684,7 +5683,6 @@ class SimpleCallNode(CallNode):
rlocked
=
False
rlocked
=
False
wlocked
=
False
wlocked
=
False
tracked_state
=
True
# Something random, anything that is not None
tracked_state
=
True
# Something random, anything that is not None
is_in_cpp
=
False
def
compile_time_value
(
self
,
denv
):
def
compile_time_value
(
self
,
denv
):
function
=
self
.
function
.
compile_time_value
(
denv
)
function
=
self
.
function
.
compile_time_value
(
denv
)
...
@@ -6077,6 +6075,7 @@ class SimpleCallNode(CallNode):
...
@@ -6077,6 +6075,7 @@ class SimpleCallNode(CallNode):
if
func_type
.
optional_arg_count
:
if
func_type
.
optional_arg_count
:
if
expected_nargs
==
actual_nargs
:
if
expected_nargs
==
actual_nargs
:
# Cast NULL to optional struct type to avoid ambiguous calls in C++
# Cast NULL to optional struct type to avoid ambiguous calls in C++
# is_in_cpp is set in above analyse_types, called earlier in the compilation process
if
self
.
is_in_cpp
:
if
self
.
is_in_cpp
:
optional_args
=
'(%s *)NULL'
%
func_type
.
op_arg_struct
.
base_type
.
cname
optional_args
=
'(%s *)NULL'
%
func_type
.
op_arg_struct
.
base_type
.
cname
else
:
else
:
...
...
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