]> git.sur5r.net Git - i3/i3/commitdiff
Use lround instead of (long)round
authorOrestis Floros <orestisf1993@gmail.com>
Wed, 3 Oct 2018 13:20:25 +0000 (16:20 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Sat, 13 Oct 2018 18:10:10 +0000 (21:10 +0300)
libi3/dpi.c

index 9bb32b68db940d058bbd4bc0efedca8c66cfa84c..d15e35be78effe198e52e569d85bd2c8025a927e 100644 (file)
@@ -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);