mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-15 06:36:48 +02:00
girepository test: Don't assume doubles are naturally-aligned
On i386 Linux, the minimal ABI alignment of a double is only 4, and therefore the alignment of GDoubleIEEE754 is also 4. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@ -52,7 +52,7 @@ test_basic (RepositoryFixture *fx,
|
||||
g_assert_null (gi_union_info_get_discriminator (double_info, 0));
|
||||
|
||||
g_assert_cmpuint (gi_union_info_get_size (double_info), ==, 8);
|
||||
g_assert_cmpuint (gi_union_info_get_alignment (double_info), ==, 8);
|
||||
g_assert_cmpuint (gi_union_info_get_alignment (double_info), ==, G_ALIGNOF (GDoubleIEEE754));
|
||||
|
||||
g_assert_null (gi_union_info_get_copy_function_name (double_info));
|
||||
g_assert_null (gi_union_info_get_free_function_name (double_info));
|
||||
|
Reference in New Issue
Block a user