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-04-11 23:48:14 +01:00
2023-01-29 12:36:06 +00:00
2023-01-29 12:36:06 +00:00
2025-04-11 23:47:47 +01:00
2023-10-16 23:34:04 +01:00
2023-11-29 13:41:34 +00:00
2023-10-16 23:34:20 +01:00
2025-04-11 23:47:24 +01:00
2022-10-13 20:53:56 -04:00
2025-04-11 23:47:29 +01:00
2023-10-16 23:35:05 +01:00
2024-11-06 22:26:06 +01:00
2024-01-15 17:32:11 -08:00
2024-12-13 23:40:32 +00:00
2024-12-13 23:40:32 +00:00
2024-03-25 15:17:59 -04:00
2024-03-25 15:17:59 -04:00
2023-12-31 09:09:48 +00:00
2022-10-26 18:07:55 +01:00
2022-10-13 20:53:56 -04:00
2023-12-12 17:30:01 +00:00
2012-10-15 19:48:44 -04:00
2022-06-01 12:44:23 +01:00
2023-10-23 10:25:30 +01:00
2024-04-25 12:39:46 +01:00
2025-04-11 23:47:47 +01:00
2023-10-16 23:34:24 +01:00
2018-01-04 22:19:30 +01:00
2023-12-30 00:20:17 +01:00
2024-09-26 22:47:30 +03:00
2025-04-11 23:47:47 +01:00
2024-12-06 18:07:47 +01:00
2025-04-11 23:47:51 +01:00
2022-10-13 20:53:56 -04:00
2025-04-11 23:47:47 +01:00
2025-03-12 11:34:30 +01:00
2023-11-29 13:41:34 +00:00
2023-10-16 23:34:44 +01:00
2025-04-11 23:47:29 +01:00
2022-10-13 20:53:56 -04:00
2025-03-12 08:27:15 +01:00
2025-04-11 23:47:47 +01:00
2025-02-10 10:26:42 +01:00
2023-12-21 18:25:36 +01:00
2023-10-16 23:34:59 +01:00
2023-10-23 11:26:53 +01:00
2023-10-16 23:34:53 +01:00
2023-10-11 14:01:29 +01:00
2022-10-13 20:53:56 -04:00
2025-04-11 23:47:29 +01:00
2023-10-16 23:34:39 +01:00
2023-10-23 13:18:13 +01:00
2024-06-28 14:35:57 +01:00
2024-06-28 14:35:57 +01:00
2023-11-04 10:40:30 +00:00
2016-05-23 10:52:10 -04:00
2025-02-11 11:57:30 +00:00