Fix SetPtrSize

This commit is contained in:
Kelvin Sherlock 2015-01-19 10:55:58 -05:00
parent c0fe74c1b8
commit 912c874825

View File

@ -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);
}