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-06-27 17:53:25 -04:00
2022-05-23 09:19:45 -04:00
2022-06-29 16:05:09 +02:00
2022-06-23 10:47:22 +01:00
2023-01-27 11:55:27 +03:00
2020-11-17 15:50:07 +00:00
2023-02-09 13:36:51 +00:00
2023-02-09 13:36:51 +00:00
2018-01-04 22:19:30 +01:00
2023-01-14 10:08:42 -05:00
2022-07-25 22:30:22 +01:00
2021-09-21 09:41:29 +00:00
2021-11-18 14:32:09 +00:00
2023-02-09 13:36:51 +00:00
2023-01-26 10:23:41 +00:00
2022-09-15 03:43:04 +02:00
2023-01-26 11:27:31 +00:00
2023-01-26 11:27:31 +00:00
2023-01-27 11:58:56 +03:00
2023-02-09 13:36:51 +00:00