/*static*/ inline INT32 GCHeapHashDependentHashTrackerHashTraits::Hash(PtrTypeKey *pValue)
{
LIMITED_METHOD_CONTRACT;
- return *(INT32*)pValue;
+ return (INT32)(SIZE_T)*pValue;
}
/*static*/ inline INT32 GCHeapHashDependentHashTrackerHashTraits::Hash(PTRARRAYREF arr, INT32 index)
/*static*/ INT32 KeyToValuesGCHeapHashTraits<TRAITS>::Hash(TKey *pValue)
{
LIMITED_METHOD_CONTRACT;
- return (INT32)(DWORD)*pValue;
+ return (INT32)(DWORD_PTR)*pValue;
}
template<class TRAITS>
static count_t Hash(key_t k)
{
LIMITED_METHOD_DAC_CONTRACT;
- return k.m_methodDef ^ *(count_t*)k.m_module;
+ return ((count_t)k.m_methodDef ^ (count_t)(SIZE_T)k.m_module);
}
static const element_t Null()
{
typedef CodeVersionManager * key_t;
static key_t GetKey(const element_t &e) { return e->m_pCodeVersionManager; }
static BOOL Equals(key_t k1, key_t k2) { return (k1 == k2); }
- static count_t Hash(key_t k) { return *(count_t*)k; }
+ static count_t Hash(key_t k) { return (count_t)(SIZE_T)k; }
static bool IsNull(const element_t &e) { return (e == NULL); }
};
CORCOMPILE_FIXUP_BLOB_KIND GetKind()
{
- int kind = (int)GetHandle();
+ int kind = (int)(SIZE_T)GetHandle();
if ((kind & 1) == 1)
{
case ZapNodeType_Import_ClassHandle:
case ZapNodeType_MethodHandle:
case ZapNodeType_Import_MethodHandle:
- hash = ((hash << 5) + hash) ^ (COUNT_T)(pTarget);
+ hash = ((hash << 5) + hash) ^ (COUNT_T)((SIZE_T)pTarget);
break;
default:
break;
static count_t Hash(key_t k)
{
LIMITED_METHOD_CONTRACT;
- return (count_t)k;
+ return (count_t)(SIZE_T)k;
}
static element_t Null() { LIMITED_METHOD_CONTRACT; return NULL; }