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
74dffa6f
Commit
74dffa6f
authored
Apr 09, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some compiler errors
parent
bd50b31c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-3
No files found.
Cython/Compiler/ExprNodes.py
View file @
74dffa6f
...
@@ -2067,7 +2067,8 @@ class SliceIndexNode(ExprNode):
...
@@ -2067,7 +2067,8 @@ class SliceIndexNode(ExprNode):
array_length
=
rhs
.
type
.
size
array_length
=
rhs
.
type
.
size
self
.
generate_slice_guard_code
(
code
,
array_length
)
self
.
generate_slice_guard_code
(
code
,
array_length
)
else
:
else
:
error
(
"Slice assignments from pointers are not yet supported."
)
error
(
self
.
pos
,
"Slice assignments from pointers are not yet supported."
)
# FIXME: fix the array size according to start/stop
# FIXME: fix the array size according to start/stop
array_length
=
self
.
base
.
type
.
size
array_length
=
self
.
base
.
type
.
size
for
i
in
range
(
array_length
):
for
i
in
range
(
array_length
):
...
@@ -2657,8 +2658,8 @@ class AttributeNode(NewTempExprNode):
...
@@ -2657,8 +2658,8 @@ class AttributeNode(NewTempExprNode):
def
compile_time_value
(
self
,
denv
):
def
compile_time_value
(
self
,
denv
):
attr
=
self
.
attribute
attr
=
self
.
attribute
if
attr
.
startswith
(
"__"
)
and
attr
.
endswith
(
"__"
):
if
attr
.
startswith
(
"__"
)
and
attr
.
endswith
(
"__"
):
self
.
error
(
"Invalid attribute name '%s' in compile-time expression"
error
(
self
.
pos
,
%
attr
)
"Invalid attribute name '%s' in compile-time expression"
%
attr
)
return
None
return
None
obj
=
self
.
obj
.
compile_time_value
(
denv
)
obj
=
self
.
obj
.
compile_time_value
(
denv
)
try
:
try
:
...
...
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