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
971b32d5
Commit
971b32d5
authored
Oct 25, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix more places where arrays should be allowed as lvalues
parent
db2c854f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-4
No files found.
Cython/Compiler/ExprNodes.py
View file @
971b32d5
...
@@ -3414,9 +3414,6 @@ class IndexNode(ExprNode):
...
@@ -3414,9 +3414,6 @@ class IndexNode(ExprNode):
elif
self
.
type
.
is_ptr
:
elif
self
.
type
.
is_ptr
:
# non-const pointers can always be reassigned
# non-const pointers can always be reassigned
return
True
return
True
elif
self
.
type
.
is_array
:
# fixed-sized arrays aren't l-values
return
False
# Just about everything else returned by the index operator
# Just about everything else returned by the index operator
# can be an lvalue.
# can be an lvalue.
return
True
return
True
...
@@ -5716,7 +5713,7 @@ class AttributeNode(ExprNode):
...
@@ -5716,7 +5713,7 @@ class AttributeNode(ExprNode):
def
is_lvalue
(
self
):
def
is_lvalue
(
self
):
if
self
.
obj
:
if
self
.
obj
:
return
not
self
.
type
.
is_array
return
True
else
:
else
:
return
NameNode
.
is_lvalue
(
self
)
return
NameNode
.
is_lvalue
(
self
)
...
...
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