diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index 0d56f9f99781..e5aa8f384222 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -193,7 +193,7 @@ FrameArena::AllocateFrame(size_t aSize, void** aResult) void* result = nsnull; // Round size to multiple of 4 - PR_ROUNDUP(aSize, 4); + aSize = PR_ROUNDUP(aSize, 4); // Check recyclers first if (aSize < gMaxRecycledSize) { diff --git a/layout/html/base/src/nsPresShell.cpp b/layout/html/base/src/nsPresShell.cpp index 0d56f9f99781..e5aa8f384222 100644 --- a/layout/html/base/src/nsPresShell.cpp +++ b/layout/html/base/src/nsPresShell.cpp @@ -193,7 +193,7 @@ FrameArena::AllocateFrame(size_t aSize, void** aResult) void* result = nsnull; // Round size to multiple of 4 - PR_ROUNDUP(aSize, 4); + aSize = PR_ROUNDUP(aSize, 4); // Check recyclers first if (aSize < gMaxRecycledSize) {