From 16208e4681cc62cc52036c09ad6309b5dcccf9bd Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Tue, 4 Jan 2000 03:04:56 +0000 Subject: [PATCH] Fixed compiler warning --- layout/base/nsPresShell.cpp | 2 +- layout/html/base/src/nsPresShell.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {