Fix compiler warnings about signed - unsigned comparisons
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 9 Aug 2005 13:40:18 +0000 (13:40 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 9 Aug 2005 13:40:18 +0000 (13:40 +0000)
modules/stream_out/switcher.c

index 43d7aea..31d4e63 100644 (file)
@@ -613,7 +613,7 @@ static int UnpackFromFile( sout_stream_t *p_stream, const char *psz_file,
         uint8_t *p_u = &p_pic->p[1].p_pixels[i/2 * p_pic->p[1].i_pitch];
         uint8_t *p_v = &p_pic->p[2].p_pixels[i/2 * p_pic->p[2].i_pitch];
 
-        if ( fread( p_buffer, 2, i_width, p_file ) != i_width )
+        if ( fread( p_buffer, 2, i_width, p_file ) != (size_t)i_width )
         {
             msg_Err( p_stream, "premature end of file %s", psz_file );
             fclose( p_file );