the compiler in Visual Studio 2010 is a jerk. VS2008 was able to compile it just fine. :(

This commit is contained in:
AJ Kelly
2012-07-02 16:50:12 -05:00
parent d4f43a2624
commit 2c01d46559
+3 -3
View File
@@ -347,7 +347,7 @@ typedef struct iztimes {
typedef struct zlist {
ush vem, ver, flg, how; // See central header in zipfile.c for what vem..off are
ulg tim, crc, siz, len;
extent nam, ext, cext, com; // offset of ext must be >= LOCHEAD
size_t nam, ext, cext, com; // offset of ext must be >= LOCHEAD
ush dsk, att, lflg; // offset of lflg must be >= LOCHEAD
ulg atx, off;
char name[MAX_PATH]; // File name in zip file
@@ -449,7 +449,7 @@ int putcentral(struct zlist *z, WRITEFUNC wfunc, void *param)
}
int putend(int n, ulg s, ulg c, extent m, char *z, WRITEFUNC wfunc, void *param)
int putend(int n, ulg s, ulg c, size_t m, char *z, WRITEFUNC wfunc, void *param)
{
// write the end of the central-directory-data to file *f.
PUTLG(ENDSIG, f);
@@ -530,7 +530,7 @@ const ulg crc_table[256] = {
#define DO4(buf) DO2(buf); DO2(buf)
#define DO8(buf) DO4(buf); DO4(buf)
ulg crc32(ulg crc, const uch *buf, extent len)
ulg crc32(ulg crc, const uch *buf, size_t len)
{
if (buf==NULL) return 0L;
crc = crc ^ 0xffffffffL;