diff options
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/pdf/pdfgen.w | 4 |
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; |