Commit 056feef6 authored by Allison Karlitskaya's avatar Allison Karlitskaya

GVariantIter: expand the size of the dummy struct

Will allow for some nice tricks in the future.
parent f5526890
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment