From b69fe111ecbd6332b7c014c44d1ac1b6af075a51 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 28 Jun 2024 14:34:04 +0100 Subject: [PATCH] tests: Use a correct-typed constant in gdatetime tests This makes no functional changes, but does avoid a warning from `-Wfloat-conversion` due to implicitly switching from `guint64` to `gdouble` and then back to `guint64`. Signed-off-by: Philip Withnall Helps: #3405 --- glib/tests/gdatetime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c index d46f653ac..7b812add4 100644 --- a/glib/tests/gdatetime.c +++ b/glib/tests/gdatetime.c @@ -1409,7 +1409,7 @@ test_GDateTime_new_from_unix_utc (void) g_assert (dt == NULL); #endif - t = t / 1e6; /* oops, this was microseconds */ + t = t / G_USEC_PER_SEC; /* oops, this was microseconds */ dt = g_date_time_new_from_unix_utc (t); g_assert (dt != NULL);