tests: Add some explicit float → int casts

This avoids some false positive warnings from `-Wfloat-conversion`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall
2024-09-17 23:36:48 +01:00
parent 7a7d8d548a
commit e888e7d497
2 changed files with 3 additions and 3 deletions

View File

@@ -837,7 +837,7 @@ cancellable_thread_cb (gpointer data)
{
GCancellable *cancellable = data;
g_usleep (0.1 * G_USEC_PER_SEC);
g_usleep ((guint64) (0.1 * G_USEC_PER_SEC));
g_cancellable_cancel (cancellable);
g_object_unref (cancellable);