mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
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:
parent
412aed7c70
commit
b69fe111ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user