]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
ooops
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 2 Jan 2020 15:07:01 +0000 (16:07 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 2 Jan 2020 15:07:01 +0000 (16:07 +0100)
src/MEDCoupling_Swig/MEDCouplingCommon.i

index eb990f7e66af9a35115ec4fb51497ed622ea154d..e6f78013b889bbc91ea9fe44d1fe8d14641d6b9b 100644 (file)
@@ -533,7 +533,7 @@ typedef DataArrayInt64 DataArrayIdType;
     PyObject *ret(PyList_New(sz));
     for(Py_ssize_t i=0;i<sz;i++)
       {
-        mcIdType elt = MEDCOUPLING2VTKTYPETRADUCER[i]!=255 ? MEDCOUPLING2VTKTYPETRADUCER[i] : -1;
+        mcIdType elt = MEDCOUPLING2VTKTYPETRADUCER[i]!=MEDCOUPLING2VTKTYPETRADUCER_NONE ? MEDCOUPLING2VTKTYPETRADUCER[i] : -1;
         PyList_SetItem(ret,i,PyInt_FromLong(elt));
       }
     return ret;