Philip Withnall
e27d64e651
tests: Fix -Wsign-conversion warnings for random ints in gobject tests
...
There’s a painful inconsistency in the types of the
`g_{test_rand,random,rand}_int{,_range}()` functions, which vary
arbitrarily between `gint32` and `guint32`.
Unfortunately since those functions mention `int` explicitly in the name
(and then some of them return an `unsigned` integer), I don’t see a way
to make the APIs consistent without significant deprecations or
additions.
So, for the moment, to fix various `-Wsign-conversion` warnings, plaster
the tests with casts.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3405
2025-04-11 23:48:14 +01:00
..
2025-02-27 07:38:17 +01:00
2022-06-01 12:17:28 +01:00
2022-11-02 12:34:19 +00:00
2022-06-01 12:17:28 +01:00
2025-04-11 23:47:56 +01:00
2022-08-09 13:18:47 -05:00
2022-06-01 12:17:28 +01:00
2023-12-31 09:09:48 +00:00
2022-11-02 12:34:19 +00:00
2014-05-30 10:22:35 -04:00
2022-11-02 12:35:45 +00:00
2022-06-01 12:44:23 +01:00
2022-06-01 12:17:28 +01:00
2022-06-01 12:17:28 +01:00
2022-09-21 10:27:55 +01:00
2022-11-02 12:34:19 +00:00
2023-07-30 11:25:42 +03:00
2022-06-30 01:46:54 +01:00
2025-04-11 23:48:04 +01:00
2025-02-11 18:51:15 +01:00
2025-02-11 18:51:15 +01:00
2025-04-11 23:48:00 +01:00
2022-05-26 19:13:19 +01:00
2022-10-27 14:50:48 +01:00
2025-02-21 16:40:47 +00:00
2025-02-11 18:51:15 +01:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2022-05-28 08:02:16 -04:00
2022-12-16 20:48:06 +01:00
2022-05-26 18:37:35 +01:00
2022-06-01 12:17:28 +01:00
2025-04-11 23:48:09 +01:00
2020-07-27 15:41:09 +01:00
2023-12-19 22:48:03 +00:00
2025-04-11 23:48:00 +01:00
2022-05-26 18:37:35 +01:00
2025-04-11 23:48:00 +01:00
2022-05-26 18:37:35 +01:00
2025-03-13 11:48:10 +00:00
2022-06-01 12:44:23 +01:00
2025-04-11 23:48:14 +01:00
2024-01-31 12:42:02 +01:00
2025-04-11 23:48:14 +01:00
2025-04-11 23:47:56 +01:00
2025-04-11 23:48:14 +01:00
2025-04-11 23:48:04 +01:00
2022-07-05 11:06:49 +00:00
2022-06-01 12:17:28 +01:00
2022-07-05 11:06:49 +00:00
2022-06-01 12:17:28 +01:00
2022-06-01 12:17:28 +01:00
2025-04-11 23:48:00 +01:00
2023-10-04 14:50:54 +01:00
2025-04-11 23:48:00 +01:00
2025-04-11 23:48:00 +01:00