1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

Fixes for compilation errors with type cast.

This commit is contained in:
stv
2015-06-04 11:37:52 +03:00
parent 8cc9532bbd
commit b8f81da0b4
2 changed files with 6 additions and 2 deletions

View File

@@ -177,7 +177,9 @@ Standard_Size Storage_IStream::Write (const Standard_Address /*theBuffer*/, cons
//======================================================================= //=======================================================================
TCollection_AsciiString Storage_IStream::Signature() const 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 );
} }
//======================================================================= //=======================================================================

View File

@@ -183,7 +183,9 @@ Standard_Size Storage_OStream::Write (const Standard_Address theBuffer, const St
//======================================================================= //=======================================================================
TCollection_AsciiString Storage_OStream::Signature() const 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 );
} }
//======================================================================= //=======================================================================