]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug detected by Clang.
authorabn <adrien.bruneton@cea.fr>
Thu, 13 Jun 2019 10:25:39 +0000 (12:25 +0200)
committerabn <adrien.bruneton@cea.fr>
Thu, 13 Jun 2019 10:25:39 +0000 (12:25 +0200)
src/MEDCoupling_Swig/MEDCouplingMemArray.i

index d43cca61beb6e513a6b71cc9911d986c034ed64c..0c1d416d25174f8dff7d14a3e293872e2230d76b 100644 (file)
@@ -2648,7 +2648,7 @@ namespace MEDCoupling
                 if(PyInt_Check(nbOfTuples))
                   {
                     int nbOfTuples1=PyInt_AS_LONG(nbOfTuples);
-                    if(nbOfTuples<0)
+                    if(nbOfTuples1<0)
                       throw INTERP_KERNEL::Exception("DataArrayInt::setValue : should be a positive set of allocated memory !");
                     if(nbOfComp && nbOfComp != Py_None)
                       {