mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-27 16:15:30 +03: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