From: stv Date: Thu, 4 Jun 2015 08:37:52 +0000 (+0300) Subject: Fixes for compilation errors with type cast. X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=846ff325778634291d644bbda715aacb98c85159;p=occt-copy.git Fixes for compilation errors with type cast. --- diff --git a/src/Storage/Storage_IStream.cxx b/src/Storage/Storage_IStream.cxx index c91f1df2f0..d3db5caa22 100644 --- a/src/Storage/Storage_IStream.cxx +++ b/src/Storage/Storage_IStream.cxx @@ -177,7 +177,9 @@ Standard_Size Storage_IStream::Write (const Standard_Address /*theBuffer*/, cons //======================================================================= TCollection_AsciiString Storage_IStream::Signature() const { - return TCollection_AsciiString( (Standard_Integer)myStream ); + Standard_Character buf[256]; + sprintf( buf, "%lx", (unsigned long)myStream ); + return TCollection_AsciiString( buf ); } //======================================================================= diff --git a/src/Storage/Storage_OStream.cxx b/src/Storage/Storage_OStream.cxx index 930760fb9d..193ef8f754 100644 --- a/src/Storage/Storage_OStream.cxx +++ b/src/Storage/Storage_OStream.cxx @@ -183,7 +183,9 @@ Standard_Size Storage_OStream::Write (const Standard_Address theBuffer, const St //======================================================================= TCollection_AsciiString Storage_OStream::Signature() const { - return TCollection_AsciiString( (Standard_Integer)myStream ); + Standard_Character buf[256]; + sprintf( buf, "%lx", (unsigned long)myStream ); + return TCollection_AsciiString( buf ); } //=======================================================================