mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0026581: Eliminate compile warnings obtained by building occt with vc14: 'type cast' conversion
This commit is contained in:
@@ -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,
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user