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:
parent
682993040a
commit
5a9487c4ce
@ -87,7 +87,7 @@ class BOPCol_ContextFunctor
|
|||||||
static Standard_Integer HashCode(const Standard_ThreadId theKey,
|
static Standard_Integer HashCode(const Standard_ThreadId theKey,
|
||||||
const Standard_Integer Upper)
|
const Standard_Integer Upper)
|
||||||
{
|
{
|
||||||
return ::HashCode(reinterpret_cast<Standard_Address>(theKey), Upper);
|
return ::HashCode(theKey, Upper);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Standard_Boolean IsEqual(const Standard_ThreadId theKey1,
|
static Standard_Boolean IsEqual(const Standard_ThreadId theKey1,
|
||||||
|
@ -23,6 +23,13 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
typedef DWORD Standard_ThreadId;
|
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
|
#else
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user