mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 07:53:39 +02:00
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user