summaryrefslogtreecommitdiff
path: root/platform/x11/x11_main.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-05-29 00:10:28 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-05-31 20:29:30 +0800
commit2d68de96c62c1e6d6a2b615336d99b671fc672b7 (patch)
treec309b8fdf623a0fd56aebc38c863b596e23c379f /platform/x11/x11_main.c
parent73d7b296bd549a7e985ea9df9f13e6ad3701ef89 (diff)
downloadmupdf-2d68de96c62c1e6d6a2b615336d99b671fc672b7.tar.xz
Avoid double literals causing casts to float.
Diffstat (limited to 'platform/x11/x11_main.c')
-rw-r--r--platform/x11/x11_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c
index 4c96ecc9..dc99878b 100644
--- a/platform/x11/x11_main.c
+++ b/platform/x11/x11_main.c
@@ -350,8 +350,8 @@ void cleanup(pdfapp_t *app)
static int winresolution()
{
- return DisplayWidth(xdpy, xscr) * 25.4 /
- DisplayWidthMM(xdpy, xscr) + 0.5;
+ return DisplayWidth(xdpy, xscr) * 25.4f /
+ DisplayWidthMM(xdpy, xscr) + 0.5f;
}
void wincursor(pdfapp_t *app, int curs)