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
Gwenaël Samain
cython
Commits
d1dc1a62
Commit
d1dc1a62
authored
Jun 06, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle correctly lock analysis in comparison expressions
parent
981572f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+11
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
d1dc1a62
...
@@ -12964,6 +12964,12 @@ class PrimaryCmpNode(ExprNode, CmpNode):
...
@@ -12964,6 +12964,12 @@ class PrimaryCmpNode(ExprNode, CmpNode):
else
:
else
:
return
self
.
operand1
.
check_const
()
and
self
.
operand2
.
check_const
()
return
self
.
operand1
.
check_const
()
and
self
.
operand2
.
check_const
()
def
ensure_subexpr_rhs_locked
(
self
,
env
):
self
.
operand1
.
ensure_rhs_locked
(
env
)
self
.
operand2
.
ensure_rhs_locked
(
env
)
if
self
.
cascade
:
self
.
cascade
.
ensure_rhs_locked
(
env
)
def
calculate_result_code
(
self
):
def
calculate_result_code
(
self
):
operand1
,
operand2
=
self
.
operand1
,
self
.
operand2
operand1
,
operand2
=
self
.
operand1
,
self
.
operand2
if
operand1
.
type
.
is_complex
:
if
operand1
.
type
.
is_complex
:
...
@@ -13075,6 +13081,11 @@ class CascadedCmpNode(Node, CmpNode):
...
@@ -13075,6 +13081,11 @@ class CascadedCmpNode(Node, CmpNode):
# if self.cascade:
# if self.cascade:
# self.cascade.check_rhs_locked(env)
# self.cascade.check_rhs_locked(env)
def
ensure_rhs_locked
(
self
,
env
):
self
.
operand2
.
ensure_rhs_locked
(
env
)
if
self
.
cascade
:
self
.
cascade
.
ensure_rhs_locked
(
env
)
def
analyse_types
(
self
,
env
):
def
analyse_types
(
self
,
env
):
self
.
operand2
=
self
.
operand2
.
analyse_types
(
env
)
self
.
operand2
=
self
.
operand2
.
analyse_types
(
env
)
if
self
.
cascade
:
if
self
.
cascade
:
...
...
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