0027772: Foundation Classes - define Standard_Boolean using C++ type "bool" instead...
[occt.git] / src / BinMDataStd / BinMDataStd_IntegerArrayDriver.cxx
index 1762a6f..93ac3e5 100644 (file)
@@ -74,7 +74,7 @@ Standard_Boolean BinMDataStd_IntegerArrayDriver::Paste
     if (! (theSource >> aDeltaValue))
       return Standard_False;
     else
-      aDelta = (Standard_Boolean)aDeltaValue;
+      aDelta = (aDeltaValue != 0);
   }
 #ifdef OCCT_DEBUG
   else if(BinMDataStd::DocumentVersion() == -1)
@@ -103,5 +103,5 @@ void BinMDataStd_IntegerArrayDriver::Paste
   theTarget << aFirstInd << aLastInd;
   Standard_Integer *aPtr = (Standard_Integer *) &aSourceArray(aFirstInd);
   theTarget.PutIntArray (aPtr, aLength);
-  theTarget << (Standard_Byte)anAtt->GetDelta(); 
+  theTarget << (Standard_Byte)(anAtt->GetDelta() ? 1 : 0);
 }