]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
powl -> pow to avoid valgrind errors on 64 bits plateforms.
authorageay <ageay>
Mon, 1 Mar 2010 10:54:00 +0000 (10:54 +0000)
committerageay <ageay>
Mon, 1 Mar 2010 10:54:00 +0000 (10:54 +0000)
src/INTERP_KERNEL/ExprEval/InterpKernelValue.cxx

index 70e5faf77abd0645a2fcac41ee0d44c20bf4a1ef..05d29511d8a5752ddf48a86162c644cf8b8afd5d 100644 (file)
@@ -385,7 +385,7 @@ Value *ValueDoubleExpr::pow(const Value *other) const throw(INTERP_KERNEL::Excep
   if(it!=_dest_data+_sz_dest_data)
     throw INTERP_KERNEL::Exception("Trying to operate pow(a,b) with a<0. !");
   ValueDoubleExpr *ret=new ValueDoubleExpr(_sz_dest_data,_src_data);
-  std::transform(_dest_data,_dest_data+_sz_dest_data,ret->getData(),std::bind2nd(std::ptr_fun(powl),p));
+  std::transform(_dest_data,_dest_data+_sz_dest_data,ret->getData(),std::bind2nd(std::ptr_fun<double,double,double>(std::pow),p));
   return ret;
 }