summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-07-07 14:16:16 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-07-07 14:16:16 +0000
commit3675a91dd83af3eaa1c1a12e91af1e6c86f710f8 (patch)
tree7e58ef0d61403d16595dc87683607c7856aba38e /Build
parentb1051fdac1c68d1449765261228c984f36033f00 (diff)
luatex: printing of longinteger/off_t
git-svn-id: svn://tug.org/texlive/trunk@31126 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/luatexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/luatexdir/pdf/pdfgen.w4
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index 0c7cf60468b..a9063570048 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,5 +1,10 @@
2013-07-05 Peter Breitenlohner <peb@mppmu.mpg.de>
+ * pdf/pdfgen.w: Use "%"LONGINTEGER_PRI"d" format specifier to
+ print (LONGINTEGER_TYPE) casted longinteger and off_t variables.
+
+2013-07-05 Peter Breitenlohner <peb@mppmu.mpg.de>
+
* lua/luainit.w (init_kpse, lua_initialize):
Use kpse_program_basename().
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
index 5f8eacc31b1..490d2f96d12 100644
--- a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
+++ b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
@@ -572,7 +572,7 @@ void pdf_print_int(PDF pdf, longinteger n)
{
char s[24];
int w;
- w = snprintf(s, 23, "%" LONGINTEGER_PRI "d", n);
+ w = snprintf(s, 23, "%" LONGINTEGER_PRI "d", (LONGINTEGER_TYPE) n);
check_nprintf(w, 23);
pdf_out_block(pdf, (const char *) s, (size_t) w);
}
@@ -719,7 +719,7 @@ void pdf_end_stream(PDF pdf)
if (pdf->seek_write_length && pdf->draftmode == 0) {
xfseeko(pdf->file, (off_t)pdf->stream_length_offset, SEEK_SET,
pdf->job_name);
- fprintf(pdf->file, "%" LONGINTEGER_PRI "i", pdf->stream_length);
+ fprintf(pdf->file, "%" LONGINTEGER_PRI "i", (LONGINTEGER_TYPE) pdf->stream_length);
xfseeko(pdf->file, 0, SEEK_END, pdf->job_name);
}
pdf->seek_write_length = false;