From: ageay Date: Tue, 28 Jun 2011 12:57:36 +0000 (+0000) Subject: Debugging revealed by compilation on gcc4.6 64 bit. X-Git-Tag: V5_1_6rc1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=64a9bab5d300b57c62120e7cf79287176e0d6141;p=tools%2Fmedcoupling.git Debugging revealed by compilation on gcc4.6 64 bit. --- diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx index ff6edfb21..4bc2354c8 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx @@ -821,6 +821,8 @@ void ExprParser::fillValuesInExpr(std::vector& 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& 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"