From b69ff1f5c1711ac55b1e8999ade203dcc1590245 Mon Sep 17 00:00:00 2001 From: Garrett Regier Date: Tue, 14 Apr 2015 20:44:38 -0700 Subject: [PATCH] gtype: Bump allowed number of children Restricting the number of children to be less than 4095 can be an issue when generating types. This is also an issue for the Lua bindings as each Lua state will create a new GType each time the Lua code is executed. https://bugzilla.gnome.org/show_bug.cgi?id=747882 --- gobject/gtype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/gtype.c b/gobject/gtype.c index dc58524..4e6f77d 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -250,7 +250,7 @@ struct _TypeNode #define SIZEOF_BASE_TYPE_NODE() (G_STRUCT_OFFSET (TypeNode, supers)) #define MAX_N_SUPERS (255) -#define MAX_N_CHILDREN (4095) +#define MAX_N_CHILDREN (G_MAXUINT) #define MAX_N_INTERFACES (255) /* Limited by offsets being 8 bits */ #define MAX_N_PREREQUISITES (511) #define NODE_TYPE(node) (node->supers[0]) -- 2.7.4