From 64a9bab5d300b57c62120e7cf79287176e0d6141 Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 28 Jun 2011 12:57:36 +0000 Subject: [PATCH] Debugging revealed by compilation on gcc4.6 64 bit. --- src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.2