fix for one more compiler warning. Thanks to pagefault for doublechecking this one!

This commit is contained in:
mkendora
2003-09-01 02:35:40 +00:00
parent 88defd41b9
commit 726ac4683a

View File

@@ -764,9 +764,12 @@ DWORD ZFileWrite()
else else
{ {
#endif #endif
//MK: this will fail if we write 2GB files
//so here's hoping we never need to.
int res=0; int res=0;
if (TextFile) if (TextFile)
res = fwrite(ZFileWriteBlock, res = (int) fwrite(ZFileWriteBlock,
1, 1,
ZFileWriteSize, ZFileWriteSize,
FILEHANDLE[ZFileWriteHandle]); FILEHANDLE[ZFileWriteHandle]);
@@ -775,7 +778,7 @@ DWORD ZFileWrite()
ZFileWriteBlock, ZFileWriteBlock,
ZFileWriteSize); ZFileWriteSize);
if (res!=ZFileWriteSize) if (res!=(int)ZFileWriteSize)
return(0xFFFFFFFF); return(0xFFFFFFFF);
#ifdef CCBETA #ifdef CCBETA
} }