1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-30 13:05:50 +03:00

0026581: Eliminate compile warnings obtained by building occt with vc14: 'type cast' conversion

This commit is contained in:
rkv 2015-10-02 16:18:58 +03:00 committed by bugmaster
parent 682993040a
commit 5a9487c4ce
2 changed files with 8 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class BOPCol_ContextFunctor
static Standard_Integer HashCode(const Standard_ThreadId theKey,
const Standard_Integer Upper)
{
return ::HashCode(reinterpret_cast<Standard_Address>(theKey), Upper);
return ::HashCode(theKey, Upper);
}
static Standard_Boolean IsEqual(const Standard_ThreadId theKey1,

View File

@ -23,6 +23,13 @@
#include <windows.h>
typedef DWORD Standard_ThreadId;
inline Standard_Integer HashCode(const Standard_ThreadId Value,
const Standard_Integer Upper)
{
// Size of int == size of unsigned long == 4 for WIN32 and WIN64
return HashCode((Standard_Integer)Value, Upper);
}
#else
#include <pthread.h>