diff --git a/oscar64/InterCode.cpp b/oscar64/InterCode.cpp index 8b42545..3167274 100644 --- a/oscar64/InterCode.cpp +++ b/oscar64/InterCode.cpp @@ -1830,7 +1830,7 @@ void InterCodeBasicBlock::LoadConstantFold(InterInstruction* ins, InterInstructi } - if (offset >= 0 && offset * stride * (InterTypeSize[ins->mDst.mType] - 1) < lobj->mSize) + if (offset >= 0 && offset + stride * (InterTypeSize[ins->mDst.mType] - 1) < lobj->mSize) { data = lobj->mData + offset;