mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
GVariantIter: expand the size of the dummy struct
Will allow for some nice tricks in the future.
This commit is contained in:
parent
f552689058
commit
056feef60b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user