mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
gvariant: Fix suffix alignment on 32-bit machines
This fixes commit 0b083e3d8c
. The static assertion added in that commit
fails on 32-bit machines.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
d3e0d4fbde
commit
d50102f2d8
@ -76,7 +76,11 @@ struct _GVariant
|
|||||||
gatomicrefcount ref_count;
|
gatomicrefcount ref_count;
|
||||||
gsize depth;
|
gsize depth;
|
||||||
|
|
||||||
|
#if g_macro__has_attribute(aligned)
|
||||||
|
guint8 suffix[] __attribute__((aligned(8)));
|
||||||
|
#else
|
||||||
guint8 suffix[];
|
guint8 suffix[];
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ensure our suffix data aligns to largest guaranteed offset
|
/* Ensure our suffix data aligns to largest guaranteed offset
|
||||||
|
Loading…
Reference in New Issue
Block a user