Fix SetPtrSize

This commit is contained in:
Kelvin Sherlock 2015-01-19 10:55:58 -05:00
parent 44d19f7d1b
commit 813e36a6c4

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