0033029: Warning on Windows 32 and 64 with VC14 after the integration of ticket 32821
authoratychini <atychini@opencascade.com>
Sun, 26 Jun 2022 17:03:59 +0000 (20:03 +0300)
committersmoskvin <smoskvin@opencascade.com>
Wed, 29 Jun 2022 18:32:45 +0000 (21:32 +0300)
Warning has been fixed by adding condition.

src/IGESCAFControl/IGESCAFControl_Provider.cxx

index dd184faec6104e327118534d90f3ba89eee0cb2a..fa8084ace0c863dabddf0b8c700465f4bca637e8 100644 (file)
@@ -63,7 +63,7 @@ void IGESCAFControl_Provider::initStatic(const Handle(DE_ConfigurationNode)& the
   myOldValues.ReadApproxd1 = Interface_Static::IVal("read.iges.bspline.approxd1.mode") == 1;
   myOldValues.ReadResourceName = Interface_Static::CVal("read.iges.resource.name");
   myOldValues.ReadSequence = Interface_Static::CVal("read.iges.sequence");
-  myOldValues.ReadFaultyEntities = Interface_Static::IVal("read.iges.faulty.entities");
+  myOldValues.ReadFaultyEntities = Interface_Static::IVal("read.iges.faulty.entities") == 1;
   myOldValues.ReadOnlyVisible = Interface_Static::IVal("read.iges.onlyvisible") == 1;
 
   myOldValues.WriteBRepMode = (IGESCAFControl_ConfigurationNode::WriteMode_BRep)Interface_Static::IVal("write.iges.brep.mode");