mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
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.
This commit is contained in:
committed by
Andreas Kling
parent
6606d70826
commit
73dd293ec4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user