From 813e36a6c413434e0ee7ce535ee20be4d46f4e9f Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 19 Jan 2015 10:55:58 -0500 Subject: [PATCH] Fix SetPtrSize --- toolbox/mm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/mm.cpp b/toolbox/mm.cpp index 89c29d3..239ba6a 100644 --- a/toolbox/mm.cpp +++ b/toolbox/mm.cpp @@ -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); }