diff options
author | Carl Smedstad <carl.smedstad@protonmail.com> | 2022-12-30 08:50:14 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-01-03 21:50:56 +0100 |
commit | 9425ce2fba6dd643c240386901de370ac90cc337 (patch) | |
tree | eece0cfb4e472de8809ea7a074336905c2767932 /sway/config | |
parent | d8212243c99f3be828033a5cc76b258990aa565b (diff) |
Replace math functions that promote float to double
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 914cf6c4..e2e48e4c 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -257,7 +257,7 @@ static void set_mode(struct wlr_output *output, struct wlr_output_state *pending // Not all floating point integers can be represented exactly // as (int)(1000 * mHz / 1000.f) // round() the result to avoid any error - int mhz = (int)round(refresh_rate * 1000); + int mhz = (int)roundf(refresh_rate * 1000); if (wl_list_empty(&output->modes) || custom) { sway_log(SWAY_DEBUG, "Assigning custom mode to %s", output->name); |