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
2023-01-29 12:36:06 +00:00
2023-01-29 12:36:06 +00:00
2023-11-29 13:41:34 +00:00
2023-10-16 23:34:04 +01:00
2023-11-29 13:41:34 +00:00
2023-10-16 23:34:20 +01:00
2023-12-31 09:09:48 +00:00
2022-10-13 20:53:56 -04:00
2024-04-26 00:21:15 +01:00
2023-10-16 23:35:05 +01:00
2023-10-11 14:01:29 +01:00
2024-01-15 17:32:11 -08:00
2023-10-04 14:50:54 +01:00
2022-11-24 12:06:10 +00:00
2024-03-25 15:17:59 -04:00
2024-03-25 15:17:59 -04:00
2023-12-31 09:09:48 +00:00
2022-10-26 18:07:55 +01:00
2022-10-13 20:53:56 -04:00
2023-12-12 17:30:01 +00:00
2012-10-15 19:48:44 -04:00
2022-06-01 12:44:23 +01:00
2023-10-23 10:25:30 +01:00
2024-04-25 12:39:46 +01:00
2024-06-14 17:53:37 +01:00
2023-10-16 23:34:24 +01:00
2018-01-04 22:19:30 +01:00
2023-12-30 00:20:17 +01:00
2022-08-09 13:18:47 -05:00
2024-05-21 22:32:20 +00:00
2023-12-19 18:41:02 +00:00
2024-06-28 14:35:00 +01:00
2022-10-13 20:53:56 -04:00
2024-05-21 22:32:20 +00:00
2024-03-07 13:12:07 +00:00
2023-11-29 13:41:34 +00:00
2023-10-16 23:34:44 +01:00
2023-10-04 14:50:54 +01:00
2022-10-13 20:53:56 -04:00
2022-07-05 11:06:49 +00:00
2024-04-25 23:16:22 +01:00
2024-04-01 11:01:06 +00:00
2023-12-21 18:25:36 +01:00
2023-10-16 23:34:59 +01:00
2023-10-23 11:26:53 +01:00
2023-10-16 23:34:53 +01:00
2023-10-11 14:01:29 +01:00
2022-10-13 20:53:56 -04:00
2024-04-01 11:01:06 +00:00
2023-10-16 23:34:39 +01:00
2023-10-23 13:18:13 +01:00
2024-06-28 14:35:57 +01:00
2024-06-28 14:35:57 +01:00
2023-11-04 10:40:30 +00:00
2016-05-23 10:52:10 -04:00
2024-03-25 15:17:59 -04:00