msvc fixes
authorJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 12 Sep 2007 02:43:45 +0000 (02:43 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 12 Sep 2007 02:43:45 +0000 (02:43 +0000)
src/flac/encode.c

index f939d45..8d24349 100644 (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;
                }