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
Kirill Smelkov
cython
Commits
db2c854f
Commit
db2c854f
authored
Oct 25, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace
parent
bb1ba04e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+7
-7
No files found.
Cython/Compiler/ExprNodes.py
View file @
db2c854f
...
...
@@ -6582,7 +6582,7 @@ class ListNode(SequenceNode):
def
calculate_constant_result
(
self
):
if
self
.
mult_factor
:
raise
ValueError
()
# may exceed the compile time memory
raise
ValueError
()
# may exceed the compile time memory
self
.
constant_result
=
[
arg
.
constant_result
for
arg
in
self
.
args
]
...
...
@@ -6600,15 +6600,15 @@ class ListNode(SequenceNode):
elif
self
.
type
.
is_array
:
for
i
,
arg
in
enumerate
(
self
.
args
):
code
.
putln
(
"%s[%s] = %s;"
%
(
self
.
result
(),
i
,
arg
.
result
()))
self
.
result
(),
i
,
arg
.
result
()))
elif
self
.
type
.
is_struct
:
for
arg
,
member
in
zip
(
self
.
args
,
self
.
type
.
scope
.
var_entries
):
code
.
putln
(
"%s.%s = %s;"
%
(
self
.
result
(),
member
.
cname
,
arg
.
result
()))
self
.
result
(),
member
.
cname
,
arg
.
result
()))
else
:
raise
InternalError
(
"List type never specified"
)
...
...
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