From: skl Date: Fri, 1 Sep 2006 09:13:16 +0000 (+0000) Subject: Corrected for IPAL13079. X-Git-Tag: V3_2_2pre~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0ef2b313da77bf984725fb6ae9af82c73dbd077c;p=modules%2Fsmesh.git Corrected for IPAL13079. --- diff --git a/src/StdMeshers/StdMeshers_Distribution.cxx b/src/StdMeshers/StdMeshers_Distribution.cxx index 4fd04bea9..815b708f6 100644 --- a/src/StdMeshers/StdMeshers_Distribution.cxx +++ b/src/StdMeshers/StdMeshers_Distribution.cxx @@ -222,9 +222,10 @@ bool FunctionExpr::value( const double t, double& f ) const double FunctionExpr::integral( const double a, const double b ) const { double res = 0.0; - CASCatch_TRY - { - math_GaussSingleIntegration _int( ( math_Function& )*this, a, b, 20 ); + CASCatch_TRY { + // skl for IPAL13079 (bug on Mandriva) - other cast + //math_GaussSingleIntegration _int( ( math_Function& )*this, a, b, 20 ); + math_GaussSingleIntegration _int( *static_cast( const_cast (this) ), a, b, 20 ); if( _int.IsDone() ) res = _int.Value(); }