diff options
Diffstat (limited to 'src/zap')
-rw-r--r-- | src/zap/zapimport.cpp | 2 | ||||
-rw-r--r-- | src/zap/zapinfo.cpp | 2 | ||||
-rw-r--r-- | src/zap/zapmetadata.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/zap/zapimport.cpp b/src/zap/zapimport.cpp index 9d8eec16e2..887996475c 100644 --- a/src/zap/zapimport.cpp +++ b/src/zap/zapimport.cpp @@ -1674,7 +1674,7 @@ public: CORCOMPILE_FIXUP_BLOB_KIND GetKind() { - int kind = (int)GetHandle(); + int kind = (int)(SIZE_T)GetHandle(); if ((kind & 1) == 1) { diff --git a/src/zap/zapinfo.cpp b/src/zap/zapinfo.cpp index 8a372828f0..ccb796da9c 100644 --- a/src/zap/zapinfo.cpp +++ b/src/zap/zapinfo.cpp @@ -734,7 +734,7 @@ COUNT_T ZapImage::MethodCodeTraits::Hash(key_t k) 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; diff --git a/src/zap/zapmetadata.h b/src/zap/zapmetadata.h index 5ef6bd4dc3..358db8ea40 100644 --- a/src/zap/zapmetadata.h +++ b/src/zap/zapmetadata.h @@ -209,7 +209,7 @@ private: 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; } |