alloc/aligned/foreign: actually correct the allocated address
This commit is contained in:
parent
39ed7b27e8
commit
6308166179
@ -70,7 +70,8 @@ namespace cruft::alloc::raw::aligned {
|
||||
cruft::view<u08*>
|
||||
allocate (std::size_t bytes)
|
||||
{
|
||||
return m_successor.allocate (bytes);
|
||||
auto res = m_successor.allocate (bytes);
|
||||
return { res.begin () + m_offset, bytes };
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user