[gnome-builder/gnome-builder-3-18] counter: ensure page_size is also set.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] counter: ensure page_size is also set.
- Date: Tue, 13 Oct 2015 07:36:48 +0000 (UTC)
commit 1c603773eeb9e5949030043b2206b8610a835db3
Author: Christian Hergert <christian hergert me>
Date: Sat Oct 3 18:48:25 2015 -0700
counter: ensure page_size is also set.
contrib/egg/egg-counter.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/contrib/egg/egg-counter.c b/contrib/egg/egg-counter.c
index 2f8e403..7749616 100644
--- a/contrib/egg/egg-counter.c
+++ b/contrib/egg/egg-counter.c
@@ -170,7 +170,8 @@ _egg_counter_arena_init_local (EggCounterArena *arena)
/* Implausible, but squashes warnings. */
if (page_size < 4096)
{
- size = 4096 * 4;
+ page_size = 4096;
+ size = page_size * 4;
goto use_malloc;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]