mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-21 09:30:55 +00:00
Fix SetPtrSize
This commit is contained in:
parent
44d19f7d1b
commit
813e36a6c4
@ -881,7 +881,7 @@ namespace MM
|
||||
|
||||
uint8_t *ptr = mcptr + Memory;
|
||||
|
||||
if (mplite_resize(&pool, ptr, newSize) < 0)
|
||||
if (mplite_resize(&pool, ptr, mplite_roundup(&pool, newSize)) < 0)
|
||||
{
|
||||
return SetMemError(MacOS::memFullErr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user