Fix compile error

This commit is contained in:
owomomo 2019-01-09 18:30:30 +08:00
parent 9407df7d2c
commit fc35a990f4
1 changed files with 2 additions and 2 deletions

View File

@ -412,8 +412,8 @@ void ItemIndexToVirtualRegion(unsigned int itemIndex, MemoryRegion& virtualRegio
return;
}
const MemoryRegion* regionPtr = s_itemIndexToRegionPointer[itemIndex];
const MemoryRegion& region = *regionPtr;
MemoryRegion* regionPtr = s_itemIndexToRegionPointer[itemIndex];
MemoryRegion& region = *regionPtr;
int bytesWithinRegion = (itemIndex - region.itemIndex) * sizeof(stepType);
int startSkipSize = ((unsigned int)(sizeof(stepType) - region.hardwareAddress)) % sizeof(stepType);