]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix compilation error on 32bit platforms
authorvsr <vsr@opencascade.com>
Thu, 24 Oct 2013 04:57:31 +0000 (04:57 +0000)
committervsr <vsr@opencascade.com>
Thu, 24 Oct 2013 04:57:31 +0000 (04:57 +0000)
src/GEOMGUI/GEOM_Displayer.cxx

index 9e59ce7e2f9b0a52ebaab26fc92409e3da391b7e..f917a2f0ec46c46bacfaa408209499ca4494553d 100644 (file)
@@ -2229,7 +2229,7 @@ void GEOM_Displayer::readFieldStepInfo( GEOM::GEOM_FieldStep_var theGeomFieldSte
     {
       GEOM::ListOfLong_var aValues = aGeomIntFieldStep->GetValues();
       for( size_t i = 0, n = aValues->length(); i < n; i++ )
-        aFieldStepData << aValues[i];
+        aFieldStepData << (long)aValues[i];
     }
   }
   else if( aFieldDataType == GEOM::FDT_Double )
@@ -2239,7 +2239,7 @@ void GEOM_Displayer::readFieldStepInfo( GEOM::GEOM_FieldStep_var theGeomFieldSte
     {
       GEOM::ListOfDouble_var aValues = aGeomDoubleFieldStep->GetValues();
       for( size_t i = 0, n = aValues->length(); i < n; i++ )
-        aFieldStepData << aValues[i];
+        aFieldStepData << (double)aValues[i];
     }
   }
   else if( aFieldDataType == GEOM::FDT_String )