summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/swig/numpy.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/swig/numpy.i b/doc/swig/numpy.i
index b9a51ee32..e3ff236aa 100644
--- a/doc/swig/numpy.i
+++ b/doc/swig/numpy.i
@@ -1291,7 +1291,7 @@
npy_intp dims[1];
if (!PyInt_Check($input))
{
- char* typestring = pytype_string($input);
+ const char* typestring = pytype_string($input);
PyErr_Format(PyExc_TypeError,
"Int dimension expected. '%s' given.",
typestring);
@@ -1319,7 +1319,7 @@
npy_intp dims[1];
if (!PyInt_Check($input))
{
- char* typestring = pytype_string($input);
+ const char* typestring = pytype_string($input);
PyErr_Format(PyExc_TypeError,
"Int dimension expected. '%s' given.",
typestring);