msvc fixes

This commit is contained in:
Josh Coalson 2007-09-12 02:43:45 +00:00
parent 44937a7652
commit 9fbcdcd1a9

View File

@ -2886,7 +2886,7 @@ FLAC__bool fskip_ahead(FILE *f, FLAC__uint64 offset)
/* MS' stdio impl can't even seek forward on stdin, have to use pure non-fseek() version: */
while(offset > 0) {
const long need = (long)min(offset, sizeof(dump));
if(fread(dump, 1, need, f) < need)
if((long)fread(dump, 1, need, f) < need)
return false;
offset -= need;
}