]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Python3.7 : PyUnicode_AsUTF8AndSize returns const char *
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 17 Jul 2019 08:16:20 +0000 (10:16 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 17 Jul 2019 08:16:20 +0000 (10:16 +0200)
src/MEDCoupling_Swig/MEDCouplingMemArray.i

index 0c1d416d25174f8dff7d14a3e293872e2230d76b..f096deb753ac510b575389a506084d5408b3f98e 100644 (file)
@@ -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