diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-19 12:36:34 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-19 12:36:34 +0000 |
commit | dafc7ac20f5196fde6017209e1def77281418021 (patch) | |
tree | b539a20c41e272926dbab4594f499510d1e4eeb2 /Build/source | |
parent | 1e1dd8ab6c9426f2ddbc3b6ac8cd6eaa52163898 (diff) |
luaTeX: Use LONGINTEGER_PRI instead of LONGINTEGER_PRI[di] to print file offsets
git-svn-id: svn://tug.org/texlive/trunk@27086 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/image/writejbig2.w | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/pdf/pdfgen.w | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index dc7ed476a28..7e74ec4d279 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,8 @@ +2012-07-19 Peter Breitenlohner <peb@mppmu.mpg.de> + + * image/writejbig2.w: Use LONGINTEGER_PRI, not LONGINTEGER_PRId. + * pdf/pdfgen.w: Use LONGINTEGER_PRI, not LONGINTEGER_PRIi. + 2012-07-14 Peter Breitenlohner <peb@mppmu.mpg.de> * utils/utils.w: Use EXIT_FAILURE instead of EX_SOFTWARE. diff --git a/Build/source/texk/web2c/luatexdir/image/writejbig2.w b/Build/source/texk/web2c/luatexdir/image/writejbig2.w index fecb25e8d55..90f291c02eb 100644 --- a/Build/source/texk/web2c/luatexdir/image/writejbig2.w +++ b/Build/source/texk/web2c/luatexdir/image/writejbig2.w @@ -731,7 +731,7 @@ static void wr_jbig2(PDF pdf, FILEINFO * fip, unsigned long page) pdf_printf(pdf, "/Height %i\n", pip->height); pdf_puts(pdf, "/ColorSpace /DeviceGray\n"); pdf_puts(pdf, "/BitsPerComponent 1\n"); - pdf_printf(pdf, "/Length %" LONGINTEGER_PRId "\n", + pdf_printf(pdf, "/Length %" LONGINTEGER_PRI "d\n", (LONGINTEGER_TYPE) getstreamlen(pip->segments.first, true)); pdf_puts(pdf, "/Filter [/JBIG2Decode]\n"); if (fip->page0.last != NULL) { @@ -746,7 +746,7 @@ static void wr_jbig2(PDF pdf, FILEINFO * fip, unsigned long page) pip = find_pageinfo(&(fip->page0), page); assert(pip != NULL); pdf_begin_dict(pdf, (int) fip->pdfpage0objnum, 0); - pdf_printf(pdf, "/Length %" LONGINTEGER_PRId "\n", + pdf_printf(pdf, "/Length %" LONGINTEGER_PRI "d\n", (LONGINTEGER_TYPE) getstreamlen(pip->segments.first, false)); } pdf_puts(pdf, ">>\n"); diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w index 65d50541294..9f475149176 100644 --- a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w +++ b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w @@ -629,7 +629,7 @@ static void write_stream_length(PDF pdf, longinteger 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, "%" LONGINTEGER_PRIi, length); + fprintf(pdf->file, "%" LONGINTEGER_PRI "i", length); xfseeko(pdf->file, (off_t) pdf_offset(pdf), SEEK_SET, jobname_cstr); } } |