From: abn Date: Thu, 13 Jun 2019 10:25:39 +0000 (+0200) Subject: Bug detected by Clang. X-Git-Tag: V9_4_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d15bb34554367bc3a38631ce76a8560702822aad;p=tools%2Fmedcoupling.git Bug detected by Clang. --- diff --git a/src/MEDCoupling_Swig/MEDCouplingMemArray.i b/src/MEDCoupling_Swig/MEDCouplingMemArray.i index d43cca61b..0c1d416d2 100644 --- a/src/MEDCoupling_Swig/MEDCouplingMemArray.i +++ b/src/MEDCoupling_Swig/MEDCouplingMemArray.i @@ -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) {