glib/gobject/tests/performance
Philip Withnall e35cfef509
performance: Add explicit casts for some double → other numeric type conversions
If we enable `-Wfloat-conversion`, these warn about a possible loss of
precision due to an implicit conversion from `double` to some other
numeric type.

The warning is correct: there is a possible loss of precision here. In
these instances, we don’t care, as the floating point arithmetic is
being done to do some imprecise scaling or imprecise timing. A loss of
precision is not a problem.

So, add an explicit cast to squash the warning.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3405
2024-06-28 14:43:26 +01:00
..
meson.build Initial test of Hurd CI - (run_tests.sh status ignored) 2023-10-18 23:33:04 +00:00
performance-run.sh tests/performance: add performance-run.sh script for running performance test 2024-03-18 13:56:03 +00:00
performance-threaded.c gobject/tests/performance: fix leaks 2022-06-23 17:18:21 +04:00
performance.c performance: Add explicit casts for some double → other numeric type conversions 2024-06-28 14:43:26 +01:00