From 052e96d3232ef644870fd514b39d2fa2a1ccf22b Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Wed, 3 Oct 2018 16:20:25 +0300 Subject: [PATCH] Use lround instead of (long)round --- libi3/dpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);