fix C++ warning
authorStefan Behnel <stefan_ml@behnel.de>
Mon, 8 Apr 2013 16:19:48 +0000 (18:19 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Mon, 8 Apr 2013 16:19:48 +0000 (18:19 +0200)
Cython/Compiler/ExprNodes.py

index 29cd825..84751c7 100755 (executable)
@@ -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,