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 <pwithnall@gnome.org>

Helps: #3405
This commit is contained in:
Philip Withnall 2024-06-28 14:34:04 +01:00
parent 412aed7c70
commit b69fe111ec
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -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);