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:
d0e6b3d
)
keep constant_result when coercing BytesNode
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 12 May 2013 13:17:17 +0000
(15:17 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 12 May 2013 13:17:17 +0000
(15:17 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
860cda8
..
a2210c8
100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-1157,7
+1157,8
@@
class BytesNode(ConstNode):
return CharNode(self.pos, value=self.value,
constant_result=ord(self.value))
- node = BytesNode(self.pos, value=self.value)
+ node = BytesNode(self.pos, value=self.value,
+ constant_result=self.constant_result)
if dst_type.is_pyobject:
if dst_type in (py_object_type, Builtin.bytes_type):
node.type = Builtin.bytes_type