mirror of
https://github.com/ksherlock/mpw.git
synced 2024-12-22 00:29:18 +00:00
Fix SetPtrSize
This commit is contained in:
parent
c0fe74c1b8
commit
912c874825
@ -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