summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-07-13 15:26:42 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-07-13 15:26:42 +0000
commit5b85326ce9004d1daee0a1cf3c2f1e0a0f8df641 (patch)
treed58fc084f236c49a1a70b15fbe1496895585ce3f /Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
parent82dbffbb38c0424e53f3cfe2d3774671995753d7 (diff)
largefile
git-svn-id: svn://tug.org/texlive/trunk@27024 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/pdf/pdfgen.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/pdf/pdfgen.w6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
index 6a1da21aafe..a52069dadbc 100644
--- a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
+++ b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
@@ -623,13 +623,13 @@ void pdf_begin_stream(PDF pdf)
}
@ @c
-static void write_stream_length(PDF pdf, int length, longinteger offset)
+static void write_stream_length(PDF pdf, longinteger length, longinteger offset)
{
if (jobname_cstr == NULL)
jobname_cstr = makecstring(job_name);
if (pdf->draftmode == 0) {
xfseeko(pdf->file, (off_t) offset, SEEK_SET, jobname_cstr);
- fprintf(pdf->file, "%i", length);
+ fprintf(pdf->file, "%" LONGINTEGER_PRId, length);
xfseeko(pdf->file, (off_t) pdf_offset(pdf), SEEK_SET, jobname_cstr);
}
}
@@ -644,7 +644,7 @@ void pdf_end_stream(PDF pdf)
pdf->stream_length = pdf_offset(pdf) - pdf_saved_offset(pdf);
pdf_flush(pdf);
if (pdf->seek_write_length)
- write_stream_length(pdf, (int) pdf->stream_length,
+ write_stream_length(pdf, pdf->stream_length,
pdf->stream_length_offset);
pdf->seek_write_length = false;
if (pdf->last_byte != pdf_newline_char)