mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Everywhere: Don't promote float to double where not needed
The `float => double => float` round trip seen in a couple of places might pessimize the code. Even if it's truncated to an int in the end, it's weird not to use the functions with the `f` suffixes when working with single precision floats.
This commit is contained in:
parent
01a0aa6e0b
commit
f14a4994b0
6 changed files with 16 additions and 16 deletions
|
@ -1902,7 +1902,7 @@ void Painter::for_each_line_segment_on_elliptical_arc(const FloatPoint& p1, cons
|
|||
if (theta_delta < 0) {
|
||||
swap(start, end);
|
||||
theta_1 = theta_1 + theta_delta;
|
||||
theta_delta = fabs(theta_delta);
|
||||
theta_delta = fabsf(theta_delta);
|
||||
}
|
||||
|
||||
auto relative_start = start - center;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue