]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Debugging revealed by compilation on gcc4.6 64 bit.
authorageay <ageay>
Tue, 28 Jun 2011 12:57:36 +0000 (12:57 +0000)
committerageay <ageay>
Tue, 28 Jun 2011 12:57:36 +0000 (12:57 +0000)
src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx

index ff6edfb21dc90d18c18cec8e3ca937981d711138..4bc2354c81d951230e708dd2e815a2a64d38738c 100644 (file)
@@ -821,6 +821,8 @@ void ExprParser::fillValuesInExpr(std::vector<double>& valuesInExpr) throw(INTER
   for(std::size_t pos=0;pos!=std::string::npos;id++)
     {
       std::size_t pos2=_expr.find_first_of(FIGURES,pos,10);
+      if(pos2==std::string::npos)
+        break;
       if(pos2>0)
         {//treat case of "x*log10(x)" -> "10" should NOT be intercepted by this
           if(other.find_first_of(_expr[pos2-1])==std::string::npos)
@@ -837,8 +839,6 @@ void ExprParser::fillValuesInExpr(std::vector<double>& valuesInExpr) throw(INTER
               throw INTERP_KERNEL::Exception(oss.str().c_str());
             }
         }
-      if(pos2==std::string::npos)
-        break;
       std::size_t pos3=_expr.find_first_not_of(FIGURES,pos2,10);
       if(pos3==std::string::npos)
         {//"x+1223442320"