projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3e67bd
)
Fix bug with infered const temp vars.
author
Robert Bradshaw
<robertwb@gmail.com>
Tue, 26 Mar 2013 06:30:34 +0000
(23:30 -0700)
committer
Robert Bradshaw
<robertwb@gmail.com>
Tue, 26 Mar 2013 06:30:34 +0000
(23:30 -0700)
Cython/Compiler/Code.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Code.py
b/Cython/Compiler/Code.py
index
2b0773d
..
94b1246
100644
(file)
--- a/
Cython/Compiler/Code.py
+++ b/
Cython/Compiler/Code.py
@@
-580,6
+580,8
@@
class FunctionState(object):
A C string referring to the variable is returned.
"""
+ if type.is_const:
+ type = type.const_base_type
if not type.is_pyobject and not type.is_memoryviewslice:
# Make manage_ref canonical, so that manage_ref will always mean
# a decref is needed.