Windows compatibility

This commit is contained in:
ana 2015-04-07 16:54:28 +03:00
parent 4ca9a3e8ad
commit a106e4f70b

View File

@ -1601,7 +1601,7 @@ GetCreationInformation(std::string& theOperationName,
AddParam( theParams, "Shape", shapes->Value(2) );
AddParam( theParams, "Shape type", TopAbs_ShapeEnum( aCI.GetSubShapeType() ));
AddParam( theParams, "State" );
GEOMAlgo_State st = GEOMAlgo_State( (int) aCI.GetTolerance()+0.1 );
GEOMAlgo_State st = GEOMAlgo_State( (int) ( aCI.GetTolerance()+0.1 ) );
const char* stName[] = { "UNKNOWN","IN","OUT","ON","ONIN","ONOUT","INOUT" };
if ( 0 <= st && st <= GEOMAlgo_ST_INOUT )
theParams.back() << stName[ st ];