diff --git a/glib/gvariant.c b/glib/gvariant.c index cd4c21ced..f76374915 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -3220,7 +3220,7 @@ struct heap_builder /* Just to make sure that by adding a union to GVariantBuilder, we * didn't accidentally change ABI. */ -G_STATIC_ASSERT (sizeof (GVariantBuilder) == sizeof (gsize[16])); +G_STATIC_ASSERT (sizeof (GVariantBuilder) == sizeof (guintptr[16])); static gboolean ensure_valid_builder (GVariantBuilder *builder) @@ -3907,7 +3907,7 @@ struct heap_dict /* Just to make sure that by adding a union to GVariantDict, we didn't * accidentally change ABI. */ -G_STATIC_ASSERT (sizeof (GVariantDict) == sizeof (gsize[16])); +G_STATIC_ASSERT (sizeof (GVariantDict) == sizeof (guintptr[16])); static gboolean ensure_valid_dict (GVariantDict *dict) diff --git a/glib/gvariant.h b/glib/gvariant.h index e7087a1f6..ac05d71d4 100644 --- a/glib/gvariant.h +++ b/glib/gvariant.h @@ -304,9 +304,9 @@ struct _GVariantBuilder { struct { gsize partial_magic; const GVariantType *type; - gsize y[14]; + guintptr y[14]; } s; - gsize x[16]; + guintptr x[16]; } u; }; @@ -453,9 +453,9 @@ struct _GVariantDict { struct { GVariant *asv; gsize partial_magic; - gsize y[14]; + guintptr y[14]; } s; - gsize x[16]; + guintptr x[16]; } u; };