diff options
-rw-r--r-- | Build/source/texk/web2c/luatexdir/pdf/pdfgen.w | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/w2c/config.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w index a52069dadbc..65d50541294 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_PRId, length); + fprintf(pdf->file, "%" LONGINTEGER_PRIi, length); xfseeko(pdf->file, (off_t) pdf_offset(pdf), SEEK_SET, jobname_cstr); } } diff --git a/Build/source/texk/web2c/w2c/config.h b/Build/source/texk/web2c/w2c/config.h index 82a47ca788f..b48b6c19b74 100644 --- a/Build/source/texk/web2c/w2c/config.h +++ b/Build/source/texk/web2c/w2c/config.h @@ -78,12 +78,15 @@ typedef off_t longinteger; #if defined(WIN32) && !defined(__MINGW32__) #define LONGINTEGER_TYPE __int64 #define LONGINTEGER_PRId "I64d" +#define LONGINTEGER_PRIi "I64i" #elif SIZEOF_LONG < SIZEOF_OFF_T #define LONGINTEGER_TYPE long long #define LONGINTEGER_PRId "lld" +#define LONGINTEGER_PRIi "lli" #else #define LONGINTEGER_TYPE long #define LONGINTEGER_PRId "ld" +#define LONGINTEGER_PRId "li" #endif /* I don't want to write a configure test for remove when all Unix |