mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-04 23:35:12 +01:00
Fix block insertion
The subtraction was the wrong way round causing an underflow.
This commit is contained in:
parent
1383e17341
commit
c708c353e3
@ -107,7 +107,7 @@ namespace skyline::kernel {
|
||||
endBlock.address = (block.address + block.size);
|
||||
endBlock.size = (iter->address + iter->size) - endBlock.address;
|
||||
|
||||
iter->size = iter->address - block.address;
|
||||
iter->size = block.address - iter->address;
|
||||
chunk->blockList.insert(std::next(iter), {block, endBlock});
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user