From: Anthony Geay Date: Wed, 17 Jul 2019 08:16:20 +0000 (+0200) Subject: Python3.7 : PyUnicode_AsUTF8AndSize returns const char * X-Git-Tag: V9_4_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f38d269716cbfde5fcac2de7773c29e109a83c45;p=tools%2Fmedcoupling.git Python3.7 : PyUnicode_AsUTF8AndSize returns const char * --- diff --git a/src/MEDCoupling_Swig/MEDCouplingMemArray.i b/src/MEDCoupling_Swig/MEDCouplingMemArray.i index 0c1d416d2..f096deb75 100644 --- a/src/MEDCoupling_Swig/MEDCouplingMemArray.i +++ b/src/MEDCoupling_Swig/MEDCouplingMemArray.i @@ -5836,7 +5836,7 @@ namespace MEDCoupling if(PyUnicode_Check(obj)) { Py_ssize_t sz; - char *pt=PyUnicode_AsUTF8AndSize(obj, &sz); + const char *pt=PyUnicode_AsUTF8AndSize(obj, &sz); if(sz==1) return self->findIdFirstEqual(pt[0]); else @@ -5873,7 +5873,7 @@ namespace MEDCoupling if(PyUnicode_Check(obj)) { Py_ssize_t sz; - char *pt=PyUnicode_AsUTF8AndSize(obj, &sz); + const char *pt=PyUnicode_AsUTF8AndSize(obj, &sz); if(sz==1) return self->presenceOfValue(pt[0]); else