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
..
2024-06-28 14:43:26 +01:00
2022-06-01 12:17:28 +01:00
2022-11-02 12:34:19 +00:00
2022-06-01 12:17:28 +01:00
2022-06-21 12:50:31 +01:00
2022-08-09 13:18:47 -05:00
2022-06-01 12:17:28 +01:00
2023-12-31 09:09:48 +00:00
2022-11-02 12:34:19 +00:00
2014-05-30 10:22:35 -04:00
2022-11-02 12:35:45 +00:00
2022-06-01 12:44:23 +01:00
2022-06-01 12:17:28 +01:00
2022-06-01 12:17:28 +01:00
2022-09-21 10:27:55 +01:00
2022-11-02 12:34:19 +00:00
2023-07-30 11:25:42 +03:00
2022-06-30 01:46:54 +01:00
2022-06-01 12:17:28 +01:00
2023-11-07 13:51:56 +00:00
2023-11-07 13:51:56 +00:00
2022-06-01 12:17:28 +01:00
2022-05-26 19:13:19 +01:00
2022-10-27 14:50:48 +01:00
2024-03-19 13:01:26 +00:00
2023-11-21 11:54:42 +00:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2022-05-28 08:02:16 -04:00
2022-12-16 20:48:06 +01:00
2022-05-26 18:37:35 +01:00
2022-06-01 12:17:28 +01:00
2024-06-28 14:38:22 +01:00
2020-07-27 15:41:09 +01:00
2023-12-19 22:48:03 +00:00
2022-05-26 18:37:35 +01:00
2022-05-26 18:37:35 +01:00
2022-05-31 15:21:46 +01:00
2022-05-26 18:37:35 +01:00
2022-10-24 10:47:35 +01:00
2022-06-01 12:44:23 +01:00
2024-02-02 14:49:09 +01:00
2024-01-31 12:42:02 +01:00
2022-06-21 12:57:33 +01:00
2023-11-01 10:53:55 +00:00
2022-05-31 15:21:46 +01:00
2023-10-04 14:50:54 +01:00
2022-07-05 11:06:49 +00:00
2022-05-17 17:23:34 +01:00
2022-06-01 12:17:28 +01:00
2022-07-05 11:06:49 +00:00
2022-06-01 12:17:28 +01:00
2022-06-01 12:17:28 +01:00
2024-02-13 08:52:15 +00:00
2023-10-04 14:50:54 +01:00
2023-07-30 13:51:00 +03:00
2023-11-04 10:40:30 +00:00