GP-24_emteere_PcodeDisEmulationError_2 minor refactor

This commit is contained in:
emteere 2020-07-14 21:27:50 -04:00
parent 4095810c01
commit 55e12a53d0

View file

@ -160,14 +160,14 @@ public class WrappedMemBuffer implements MemBuffer {
private void fillBuffer(int offset) throws MemoryAccessException {
// fill the buffer
int nRead = memBuffer.getBytes(buffer, computeOffset(offset));
subBufferIndex = -offset;
minOffset = offset;
maxOffset = offset + nRead - 1;
if (nRead == 0) {
throw new MemoryAccessException();
}
subBufferIndex = -offset;
minOffset = offset;
maxOffset = offset + nRead - 1;
}
@Override