[gnome-builder] counter: ensure page_size is also set.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] counter: ensure page_size is also set.
- Date: Sun, 4 Oct 2015 01:48:42 +0000 (UTC)
commit f5769932f9a74d585d7f49806f08baf92172d44c
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]