summaryrefslogtreecommitdiff
path: root/source/tools
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 /source/tools
parent73d7b296bd549a7e985ea9df9f13e6ad3701ef89 (diff)
downloadmupdf-2d68de96c62c1e6d6a2b615336d99b671fc672b7.tar.xz
Avoid double literals causing casts to float.
Diffstat (limited to 'source/tools')
-rw-r--r--source/tools/muraster.c8
-rw-r--r--source/tools/murun.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/source/tools/muraster.c b/source/tools/muraster.c
index 12b81ac3..5b92a9d2 100644
--- a/source/tools/muraster.c
+++ b/source/tools/muraster.c
@@ -71,13 +71,13 @@
MURASTER_CONFIG_WIDTH: The printable page width
(in inches)
*/
-/* #define MURASTER_CONFIG_WIDTH 8.27 */
+/* #define MURASTER_CONFIG_WIDTH 8.27f */
/*
MURASTER_CONFIG_HEIGHT: The printable page height
(in inches)
*/
-/* #define MURASTER_CONFIG_HEIGHT 11.69 */
+/* #define MURASTER_CONFIG_HEIGHT 11.69f */
/*
MURASTER_CONFIG_STORE_SIZE: The maximum size to use
@@ -172,13 +172,13 @@ int gettimeofday(struct timeval *tv, struct timezone *tz);
#ifdef MURASTER_CONFIG_WIDTH
#define PAPER_WIDTH MURASTER_CONFIG_WIDTH
#else
-#define PAPER_WIDTH 8.27
+#define PAPER_WIDTH 8.27f
#endif
#ifdef MURASTER_CONFIG_HEIGHT
#define PAPER_HEIGHT MURASTER_CONFIG_HEIGHT
#else
-#define PAPER_HEIGHT 11.69
+#define PAPER_HEIGHT 11.69f
#endif
#ifdef MURASTER_CONFIG_STORE_SIZE
diff --git a/source/tools/murun.c b/source/tools/murun.c
index c817ca96..cbfd2a78 100644
--- a/source/tools/murun.c
+++ b/source/tools/murun.c
@@ -3626,7 +3626,7 @@ static void ffi_PDFObject_asNumber(js_State *J)
{
fz_context *ctx = js_getcontext(J);
pdf_obj *obj = js_touserdata(J, 0, "pdf_obj");
- double num;
+ float num;
fz_try(ctx)
if (pdf_is_int(ctx, obj))
num = pdf_to_int(ctx, obj);