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:
0322f85
)
fix C++ warning
author
Stefan Behnel
<stefan_ml@behnel.de>
Mon, 8 Apr 2013 16:19:48 +0000
(18:19 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Mon, 8 Apr 2013 16:19:48 +0000
(18:19 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
29cd825
..
84751c7
100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-8281,9
+8281,8
@@
class CythonArrayNode(ExprNode):
code.putln("%s = __pyx_format_from_typeinfo(&%s);" %
(format_temp, type_info))
buildvalue_fmt = " __PYX_BUILD_PY_SSIZE_T " * len(shapes)
- code.putln('%s = Py_BuildValue("(" %s ")", %s);' % (shapes_temp,
- buildvalue_fmt,
- ", ".join(shapes)))
+ code.putln('%s = Py_BuildValue((char*) "(" %s ")", %s);' % (
+ shapes_temp, buildvalue_fmt, ", ".join(shapes)))
err = "!%s || !%s || !PyBytes_AsString(%s)" % (format_temp,
shapes_temp,