summaryrefslogtreecommitdiff
path: root/src/vm/array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/array.cpp')
-rw-r--r--src/vm/array.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/array.cpp b/src/vm/array.cpp
index 6c58fe727b..9295c7cdc8 100644
--- a/src/vm/array.cpp
+++ b/src/vm/array.cpp
@@ -374,7 +374,7 @@ MethodTable* Module::CreateArrayMethodTable(TypeHandle elemTypeHnd, CorElementTy
// If none, we need to allocate space for the slots
if (!canShareVtableChunks)
{
- cbMT += numVirtuals * sizeof(PCODE);
+ cbMT += numVirtuals * sizeof(MethodTable::VTableIndir2_t);
}
// Canonical methodtable has an array of non virtual slots pointed to by the optional member
@@ -544,7 +544,7 @@ MethodTable* Module::CreateArrayMethodTable(TypeHandle elemTypeHnd, CorElementTy
else
{
// Use the locally allocated chunk
- it.SetIndirectionSlot((PTR_PCODE)(pMemory+cbArrayClass+offsetOfUnsharedVtableChunks));
+ it.SetIndirectionSlot((MethodTable::VTableIndir2_t *)(pMemory+cbArrayClass+offsetOfUnsharedVtableChunks));
offsetOfUnsharedVtableChunks += it.GetSize();
}
}