diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-13 05:57:47 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-13 05:57:47 +0000 |
commit | fe9645c163ee9586294626bd59da2a32d193ad55 (patch) | |
tree | 9f7851ce1a06699b3626e0c9fbd56c226149e9e3 /Build/source/texk/web2c/luatexdir | |
parent | 1ec99a8eed71f9db9ff56f033f9a69f344fc8eca (diff) |
luaTeX: Cast xfseeko() arg2 to avoid MSVC warning (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@27022 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir')
-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); } } |