summaryrefslogtreecommitdiff
path: root/src/jit/emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jit/emit.cpp')
-rw-r--r--src/jit/emit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jit/emit.cpp b/src/jit/emit.cpp
index 5c70e08e37..7a1d106f17 100644
--- a/src/jit/emit.cpp
+++ b/src/jit/emit.cpp
@@ -5460,8 +5460,8 @@ void emitter::emitOutputDataSec(dataSecDsc* sec, BYTE* dst)
JITDUMP(" section %u, size %u, block absolute addr\n", secNum++, dscSize);
assert(dscSize && dscSize % TARGET_POINTER_SIZE == 0);
- size_t numElems = dscSize / TARGET_POINTER_SIZE;
- BYTE** bDst = (BYTE**)dst;
+ size_t numElems = dscSize / TARGET_POINTER_SIZE;
+ target_size_t* bDst = (target_size_t*)dst;
for (unsigned i = 0; i < numElems; i++)
{
BasicBlock* block = ((BasicBlock**)dsc->dsCont)[i];
@@ -5475,7 +5475,7 @@ void emitter::emitOutputDataSec(dataSecDsc* sec, BYTE* dst)
#ifdef _TARGET_ARM_
target = (BYTE*)((size_t)target | 1); // Or in thumb bit
#endif
- bDst[i] = target;
+ bDst[i] = (target_size_t)target;
if (emitComp->opts.compReloc)
{
emitRecordRelocation(&(bDst[i]), target, IMAGE_REL_BASED_HIGHLOW);