0031007: Coding - eliminate warnings issued while compiling with -pedantic flag
[occt.git] / src / BinTools / BinTools.cxx
index a02f717..9530abc 100644 (file)
@@ -136,7 +136,7 @@ Standard_IStream& BinTools::GetShortReal (Standard_IStream& theIS,
 Standard_IStream& BinTools::GetInteger(Standard_IStream& IS, Standard_Integer& aValue)
 {
   if(!IS.read ((char*)&aValue, sizeof(Standard_Integer)))
-    throw Storage_StreamTypeMismatchError();;
+    throw Storage_StreamTypeMismatchError();
 #if DO_INVERSE
   aValue = InverseInt (aValue);
 #endif
@@ -151,7 +151,7 @@ Standard_IStream& BinTools::GetInteger(Standard_IStream& IS, Standard_Integer& a
 Standard_IStream& BinTools::GetExtChar(Standard_IStream& IS, Standard_ExtCharacter& theValue)
 {
   if(!IS.read ((char*)&theValue, sizeof(Standard_ExtCharacter)))
-    throw Storage_StreamTypeMismatchError();;
+    throw Storage_StreamTypeMismatchError();
 #if DO_INVERSE
   theValue = InverseExtChar (theValue);
 #endif