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 /source/pdf/pdf-xref.c | |
parent | 73d7b296bd549a7e985ea9df9f13e6ad3701ef89 (diff) | |
download | mupdf-2d68de96c62c1e6d6a2b615336d99b671fc672b7.tar.xz |
Avoid double literals causing casts to float.
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r-- | source/pdf/pdf-xref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index 2d046bbe..ba2689b9 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -594,7 +594,7 @@ pdf_load_version(fz_context *ctx, pdf_document *doc) if (memcmp(buf, "%PDF-", 5) != 0) fz_throw(ctx, FZ_ERROR_GENERIC, "cannot recognize version marker"); - doc->version = 10 * (fz_atof(buf+5) + 0.05); + doc->version = 10 * (fz_atof(buf+5) + 0.05f); } static void @@ -1469,7 +1469,7 @@ pdf_init_document(fz_context *ctx, pdf_document *doc) version_str = pdf_to_name(ctx, obj); if (*version_str) { - int version = 10 * (fz_atof(version_str) + 0.05); + int version = 10 * (fz_atof(version_str) + 0.05f); if (version > doc->version) doc->version = version; } |