diff options
author | Fadi Hanna <fadim@microsoft.com> | 2017-10-19 03:10:45 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-10-19 03:10:44 +0300 |
commit | 49d0210230c0044f43cac21266b179258fb85bf3 (patch) | |
tree | 4bca6c5bd13cba0b57d117470b19373091f5f8de /src/Native/Runtime/RuntimeInstance.cpp | |
parent | 726bbcff79351771c1b8feaab87b27f5bf45cb64 (diff) |
Changing reloc types in method associated data nodes to be more compatible with unix envirtonments. (#4760)
Diffstat (limited to 'src/Native/Runtime/RuntimeInstance.cpp')
-rw-r--r-- | src/Native/Runtime/RuntimeInstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Native/Runtime/RuntimeInstance.cpp b/src/Native/Runtime/RuntimeInstance.cpp index 35f22d38c..76823ed87 100644 --- a/src/Native/Runtime/RuntimeInstance.cpp +++ b/src/Native/Runtime/RuntimeInstance.cpp @@ -192,7 +192,7 @@ PTR_UInt8 RuntimeInstance::GetTargetOfUnboxingAndInstantiatingStub(PTR_VOID Cont UInt8 flags = *pData++; if ((flags & (UInt8)AssociatedDataFlags::HasUnboxingStubTarget) != 0) - return *((PTR_PTR_UInt8)pData); + return pData + *dac_cast<PTR_Int32>(pData); } } |