diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-05-29 00:10:28 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-05-31 20:29:30 +0800 |
commit | 2d68de96c62c1e6d6a2b615336d99b671fc672b7 (patch) | |
tree | c309b8fdf623a0fd56aebc38c863b596e23c379f /platform/x11/x11_main.c | |
parent | 73d7b296bd549a7e985ea9df9f13e6ad3701ef89 (diff) | |
download | mupdf-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.c | 4 |
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) |