fix: Crash when using BufferedReader ReverseIterator
This commit is contained in:
parent
419a2875b3
commit
2b9e43db82
@ -53,7 +53,7 @@ namespace hex::prv {
|
||||
|
||||
this->updateBuffer(address - std::min<u64>(address, this->m_buffer.size()), size);
|
||||
|
||||
auto result = &this->m_buffer[address - this->m_startAddress];
|
||||
auto result = &this->m_buffer[address - this->m_bufferAddress];
|
||||
|
||||
return { result, result + std::min(size, this->m_buffer.size()) };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user