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,
#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>