From 03f8003e2926174077603c864d885bc7f926fa8e Mon Sep 17 00:00:00 2001 From: msv Date: Tue, 25 Apr 2006 07:23:12 +0000 Subject: [PATCH] convert float constant to vtkFloatingPointType to solve porting problem --- src/PIPELINE/VISU_LookupTable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2