summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/pdf/pdfgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/pdf/pdfgen.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/pdf/pdfgen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.c b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.c
index 0409dbc33dc..78ce165957f 100644
--- a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.c
+++ b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.c
@@ -2482,14 +2482,17 @@ void scan_pdfcatalog(PDF pdf)
real conforming to the implementation limits of \PDF\ as specified in
appendix C.1 of the \PDF\ standard. The maximum value of ints is |+2^32|, the
maximum value of reals is |+2^15| and the smallest values of reals is
- |1/(2^16)|.
+ |1/(2^16)|. We are quite large on precision, because it could happen that a
+ pdf file imported as figure has real numbers with an unusual (and possibly useless)
+ high precision. Later the formatter will write the numbers in the correct format.
*/
static pdffloat conv_double_to_pdffloat(double n)
{
pdffloat a;
- a.e = 6;
+/* was a.e = 6; */
+ a.e = 9 ;
a.m = i64round(n * ten_pow[a.e]);
return a;
}