Simon McVittie 854fd11422 array-test: Don't rely on endianness of multi-byte numbers
The array is an array of bytes in this part of the test, so we need to
append a single byte. Previously we were reusing val (a size_t variable)
from earlier in the test, but because g_array_append_val passes the value
by reference, appending a multi-byte number to an array of bytes will
take the first byte of the number's memory representation, which has the
desired value on little-endian CPUs but is zero on big-endian, leading
to a test failure.

Resolves: https://gitlab.gnome.org/GNOME/glib/-/issues/2918
Bug-Debian: https://bugs.debian.org/1031271
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-02-14 10:42:08 +00:00
..
2022-07-05 11:06:49 +00:00
2010-07-10 23:56:45 -04:00
2022-09-15 03:43:04 +02:00
2023-02-01 16:29:04 +00:00
2010-07-05 23:43:47 -04:00
2018-12-17 16:19:31 -05:00
2011-02-13 23:49:19 -05:00
2023-01-20 14:06:23 +01:00
2013-11-23 00:39:07 -05:00
2010-07-07 22:03:02 -04:00
2011-01-27 23:07:53 -05:00