diff options
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/pdf/pdfgen.w | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index 0d5d960fdc2..66c2ea204f3 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,7 @@ +2012-07-13 Peter Breitenlohner <peb@mppmu.mpg.de> + + * pdf/pdfgen.w: Cast xfseeko() arg2 to avoid MSVC warning. + 2012-07-09 Peter Breitenlohner <peb@mppmu.mpg.de> * tex/texfileio.w (runpopen): Sync with ../lib/texmfmp.c. diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w index 76070fbfef3..6a1da21aafe 100644 --- a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w +++ b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w @@ -629,8 +629,8 @@ static void write_stream_length(PDF pdf, int length, longinteger offset) jobname_cstr = makecstring(job_name); if (pdf->draftmode == 0) { xfseeko(pdf->file, (off_t) offset, SEEK_SET, jobname_cstr); - fprintf(pdf->file, "%li", (long int) length); - xfseeko(pdf->file, pdf_offset(pdf), SEEK_SET, jobname_cstr); + fprintf(pdf->file, "%i", length); + xfseeko(pdf->file, (off_t) pdf_offset(pdf), SEEK_SET, jobname_cstr); } } |