From 8a6e400af141d3340addb31695dda0499b224b0e Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Wed, 27 Nov 2019 12:46:45 +0100 Subject: [PATCH] For python 3.7. --- tools/CurvePlot/src/cpp/CurvePlot.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/CurvePlot/src/cpp/CurvePlot.cxx b/tools/CurvePlot/src/cpp/CurvePlot.cxx index d1a37150e..c39246f5a 100644 --- a/tools/CurvePlot/src/cpp/CurvePlot.cxx +++ b/tools/CurvePlot/src/cpp/CurvePlot.cxx @@ -159,7 +159,7 @@ namespace CURVEPLOT if(!PyUnicode_Check(ret_py)) throw Exception("CurvePlot::toStdString(): Unexpected returned type!"); Py_ssize_t size; - char *ptr = PyUnicode_AsUTF8AndSize(ret_py, &size); + const char *ptr = PyUnicode_AsUTF8AndSize(ret_py, &size); ret_str = std::string(ptr); } return ret_str; -- 2.39.2