diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-13 05:57:20 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-13 05:57:20 +0000 |
commit | 1ec99a8eed71f9db9ff56f033f9a69f344fc8eca (patch) | |
tree | 65a9916c17dec3891901bce972dd081528e824ef | |
parent | a1972ea07466ac3bd604731ea28a25d12d1b00f5 (diff) |
pdfTeX: Cast xfseeko() arg2 to avoid MSVC warning (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@27021 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writejbig2.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index 94dd827f892..a87899433b4 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,6 +1,10 @@ +2012-07-13 Peter Breitenlohner <peb@mppmu.mpg.de> + + * writejbig2.c: Cast xfseeko() arg2 to avoid MSVC warning. + 2012-06-30 Peter Breitenlohner <peb@mppmu.mpg.de> - * pdftexextra.c [W32TeX]: #define DLLPROC for pdftex.dll. + * pdftexextra.c [W32TeX]: #define DLLPROC for pdftex.dll. 2012-06-29 Peter Breitenlohner <peb@mppmu.mpg.de> diff --git a/Build/source/texk/web2c/pdftexdir/writejbig2.c b/Build/source/texk/web2c/pdftexdir/writejbig2.c index dbc167a5029..b3ec8c9c784 100644 --- a/Build/source/texk/web2c/pdftexdir/writejbig2.c +++ b/Build/source/texk/web2c/pdftexdir/writejbig2.c @@ -377,7 +377,7 @@ static void readfilehdr(FILEINFO * fip) /* Annex D.4 File header syntax */ /* Annex D.4.1 ID string */ unsigned char jbig2_id[] = { 0x97, 'J', 'B', '2', 0x0d, 0x0a, 0x1a, 0x0a }; - xfseeko(fip->file, 0, SEEK_SET, fip->filename); + xfseeko(fip->file, (off_t)0, SEEK_SET, fip->filename); for (i = 0; i < 8; i++) if (ygetc(fip->file) != jbig2_id[i]) pdftex_fail @@ -386,9 +386,9 @@ static void readfilehdr(FILEINFO * fip) fip->filehdrflags = ygetc(fip->file); fip->sequentialaccess = (fip->filehdrflags & 0x01) ? true : false; if (fip->sequentialaccess) { /* Annex D.1 vs. Annex D.2 */ - xfseeko(fip->file, 0, SEEK_END, fip->filename); + xfseeko(fip->file, (off_t)0, SEEK_END, fip->filename); fip->filesize = xftello(fip->file, fip->filename); - xfseeko(fip->file, 9, SEEK_SET, fip->filename); + xfseeko(fip->file, (off_t)9, SEEK_SET, fip->filename); } /* Annex D.4.3 Number of pages */ if (!(fip->filehdrflags >> 1) & 0x01) /* known number of pages */ |