From: Orestis Floros Date: Wed, 3 Oct 2018 13:20:25 +0000 (+0300) Subject: Use lround instead of (long)round X-Git-Tag: 4.16~14^2~6 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=052e96d3232ef644870fd514b39d2fa2a1ccf22b Use lround instead of (long)round --- diff --git a/libi3/dpi.c b/libi3/dpi.c index 9bb32b68..d15e35be 100644 --- a/libi3/dpi.c +++ b/libi3/dpi.c @@ -49,7 +49,7 @@ void init_dpi(void) { dpi = 0; goto init_dpi_end; } - dpi = (long)round(in_dpi); + dpi = lround(in_dpi); DLOG("Found Xft.dpi = %ld.\n", dpi);