Fix compilation error on 32bit platforms

This commit is contained in:
vsr 2013-10-24 04:57:31 +00:00
parent ffb97fe743
commit 54779d6c21

View File

@ -2229,7 +2229,7 @@ void GEOM_Displayer::readFieldStepInfo( GEOM::GEOM_FieldStep_var theGeomFieldSte
{ {
GEOM::ListOfLong_var aValues = aGeomIntFieldStep->GetValues(); GEOM::ListOfLong_var aValues = aGeomIntFieldStep->GetValues();
for( size_t i = 0, n = aValues->length(); i < n; i++ ) for( size_t i = 0, n = aValues->length(); i < n; i++ )
aFieldStepData << aValues[i]; aFieldStepData << (long)aValues[i];
} }
} }
else if( aFieldDataType == GEOM::FDT_Double ) 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(); GEOM::ListOfDouble_var aValues = aGeomDoubleFieldStep->GetValues();
for( size_t i = 0, n = aValues->length(); i < n; i++ ) for( size_t i = 0, n = aValues->length(); i < n; i++ )
aFieldStepData << aValues[i]; aFieldStepData << (double)aValues[i];
} }
} }
else if( aFieldDataType == GEOM::FDT_String ) else if( aFieldDataType == GEOM::FDT_String )