mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-10 08:29:25 +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.address = (block.address + block.size);
|
||||||
endBlock.size = (iter->address + iter->size) - endBlock.address;
|
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});
|
chunk->blockList.insert(std::next(iter), {block, endBlock});
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user