diff options
author | Nicholas-Baron <nicholas.baron.ten@gmail.com> | 2021-04-15 00:36:14 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-16 19:01:54 +0200 |
commit | 73dd293ec4ffcfefae9db8e10eaaa84d4a4be4a8 (patch) | |
tree | 835bd47b8c14f8af6b070f1adbeef630db28d5a9 /Userland/Libraries/LibWeb/SVG | |
parent | 6606d70826b21c803742ed2b971d061b7f3497e3 (diff) | |
download | serenity-73dd293ec4ffcfefae9db8e10eaaa84d4a4be4a8.zip |
Everywhere: Add `-Wdouble-promotion` warning
This warning informs of float-to-double conversions. The best solution
seems to be to do math *either* in 32-bit *or* in 64-bit, and only to
cross over when absolutely necessary.
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG')
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp index a6a718aa8d..d97bc13852 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp @@ -516,7 +516,7 @@ Gfx::Path& SVGPathElement::get_path() case PathInstructionType::EllipticalArc: { double rx = data[0]; double ry = data[1]; - double x_axis_rotation = data[2] * M_DEG2RAD; + double x_axis_rotation = double { data[2] } * M_DEG2RAD; double large_arc_flag = data[3]; double sweep_flag = data[4]; auto& last_point = path.segments().last().point(); |