LibWeb: Use ceilf() instead of ceil() for float values

This commit is contained in:
Sam Atkins 2022-10-24 16:01:43 +01:00 committed by Linus Groh
parent d3476c28ba
commit 8a5c50f59d
Notes: sideshowbarker 2024-07-17 06:51:40 +09:00

View file

@ -77,7 +77,7 @@ void paint_border(PaintContext& context, BorderEdge edge, Gfx::IntRect const& re
auto color = border_data.color;
auto border_style = border_data.line_style;
int int_width = ceil(width);
int int_width = ceilf(width);
struct Points {
Gfx::IntPoint p1;
@ -257,7 +257,7 @@ void paint_all_borders(PaintContext& context, Gfx::FloatRect const& bordered_rec
top_right = { 0, 0 };
auto int_width = [&](auto value) -> int {
return ceil(value);
return ceilf(value);
};
Gfx::IntRect top_border_rect = {