0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / BinObjMgt / BinObjMgt_Persistent.lxx
index de9eb24..c7c22af 100644 (file)
@@ -227,6 +227,6 @@ inline const BinObjMgt_Persistent& BinObjMgt_Persistent::GetBoolean
 //  Standard_Integer anIntVal = (Standard_Integer) theValue;
   Standard_Integer anIntVal;
   GetInteger (anIntVal);
-  theValue = (Standard_Boolean) anIntVal;
+  theValue = anIntVal != 0;
   return *this;
 }