mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 16:55:09 +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:
parent
6606d70826
commit
73dd293ec4
26 changed files with 105 additions and 98 deletions
|
@ -189,7 +189,7 @@ void dump_tree(StringBuilder& builder, const Layout::Node& layout_node, bool sho
|
|||
|
||||
if (show_box_model) {
|
||||
// Dump the horizontal box properties
|
||||
builder.appendf(" [%g+%g+%g %g %g+%g+%g]",
|
||||
builder.appendff(" [{}+{}+{} {} {}+{}+{}]",
|
||||
box.box_model().margin.left,
|
||||
box.box_model().border.left,
|
||||
box.box_model().padding.left,
|
||||
|
@ -199,7 +199,7 @@ void dump_tree(StringBuilder& builder, const Layout::Node& layout_node, bool sho
|
|||
box.box_model().margin.right);
|
||||
|
||||
// And the vertical box properties
|
||||
builder.appendf(" [%g+%g+%g %g %g+%g+%g]",
|
||||
builder.appendff(" [{}+{}+{} {} {}+{}+{}]",
|
||||
box.box_model().margin.top,
|
||||
box.box_model().border.top,
|
||||
box.box_model().padding.top,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue