summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-07-07 00:24:00 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2008-07-07 00:24:00 +0200
commit2e208b419e479083677c24d8ff946d3b0ebf85be (patch)
tree7073e4a6bffcb73f0632f3ed2bd35553c421cbca
parentf7a568025e018b224e6afe24234880741b75a9df (diff)
downloadmupdf-2e208b419e479083677c24d8ff946d3b0ebf85be.tar.xz
Make sure that PDF version is correctly parsed.
-rw-r--r--mupdf/pdf_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mupdf/pdf_open.c b/mupdf/pdf_open.c
index 6f0fce08..0cbaf268 100644
--- a/mupdf/pdf_open.c
+++ b/mupdf/pdf_open.c
@@ -28,7 +28,7 @@ loadversion(pdf_xref *xref)
if (memcmp(buf, "%PDF-", 5) != 0)
return fz_throw("cannot recognize version marker");
- xref->version = (int) atof(buf + 5) * 10.0 + 0.5;
+ xref->version = (int) (atof(buf + 5) * 10.0 + 0.5);
pdf_logxref("version %d.%d\n", xref->version / 10, xref->version % 10);