GVariantIter: expand the size of the dummy struct

Will allow for some nice tricks in the future.
This commit is contained in:
Ryan Lortie 2010-03-13 19:55:56 -05:00
parent f552689058
commit 056feef60b
2 changed files with 3 additions and 3 deletions

View File

@ -1993,7 +1993,7 @@ gsize
g_variant_iter_init (GVariantIter *iter,
GVariant *value)
{
g_assert (sizeof (GVariantIter) == sizeof (struct stack_iter));
g_assert (sizeof (struct stack_iter) <= sizeof (GVariantIter));
GVSI(iter)->magic = GVSI_MAGIC;
GVSI(iter)->value = value;
@ -2371,7 +2371,7 @@ g_variant_builder_init (GVariantBuilder *builder,
g_return_if_fail (type != NULL);
g_return_if_fail (g_variant_type_is_container (type));
g_assert (sizeof (struct stack_builder) < sizeof (GVariantBuilder));
g_assert (sizeof (struct stack_builder) <= sizeof (GVariantBuilder));
memset (builder, 0, sizeof (GVariantBuilder));
GVSB(builder)->type = g_variant_type_copy (type);

View File

@ -142,7 +142,7 @@ gboolean g_variant_equal (gconstp
typedef struct _GVariantIter GVariantIter;
struct _GVariantIter {
/*< private >*/
gsize x[8];
gsize x[16];
};
GVariantIter * g_variant_iter_new (GVariant *value);