From: msv Date: Tue, 25 Apr 2006 07:23:12 +0000 (+0000) Subject: convert float constant to vtkFloatingPointType to solve porting problem X-Git-Tag: T3_2_0b1_pre1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=03f8003e2926174077603c864d885bc7f926fa8e;p=modules%2Fvisu.git convert float constant to vtkFloatingPointType to solve porting problem --- diff --git a/src/PIPELINE/VISU_LookupTable.cxx b/src/PIPELINE/VISU_LookupTable.cxx index 9d9b533b..e0d7440c 100644 --- a/src/PIPELINE/VISU_LookupTable.cxx +++ b/src/PIPELINE/VISU_LookupTable.cxx @@ -90,7 +90,7 @@ VISU_LookupTable { if(GetScale() == VTK_SCALE_LOG10) { vtkFloatingPointType aLowBound = log10(this->TableRange[0]); - v = pow(10.0f,aLowBound + (v - aLowBound)*myScale); + v = pow(vtkFloatingPointType(10.0), aLowBound + (v - aLowBound)*myScale); return vtkLookupTable::MapValue(v); } else if (!myBicolor) { v = this->TableRange[0] + (v - this->TableRange[0])*myScale;