summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog6
-rw-r--r--Build/source/texk/web2c/pdftexdir/writejbig2.c6
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 */