From: Jean-Paul Saman Date: Sat, 6 Dec 2003 22:50:08 +0000 (+0000) Subject: Fixed compiler waring about signed - unsigned comparision. It is always safer to... X-Git-Tag: 0.7.0~205 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5b4900edd0909de1919f9b45881385e1c27d9133;p=vlc Fixed compiler waring about signed - unsigned comparision. It is always safer to use the same datatype when comparing values. --- diff --git a/modules/access_output/http.c b/modules/access_output/http.c index f0a315e58e..d46ced6886 100644 --- a/modules/access_output/http.c +++ b/modules/access_output/http.c @@ -2,7 +2,7 @@ * http.c ***************************************************************************** * Copyright (C) 2001-2003 VideoLAN - * $Id: http.c,v 1.7 2003/08/25 01:33:25 fenrir Exp $ + * $Id: http.c,v 1.8 2003/12/06 22:50:08 jpsaman Exp $ * * Authors: Laurent Aimar * @@ -298,7 +298,7 @@ static int Write( sout_access_out_t *p_access, sout_buffer_t *p_buffer ) p_sys->i_header_size = 0; p_sys->b_header_complete = VLC_FALSE; } - if( p_buffer->i_size + p_sys->i_header_size > p_sys->i_header_allocated ) + if( (int)(p_buffer->i_size + p_sys->i_header_size) > p_sys->i_header_allocated ) { p_sys->i_header_allocated = p_buffer->i_size + p_sys->i_header_size + 1024; p_sys->p_header = realloc( p_sys->p_header, p_sys->i_header_allocated ); diff --git a/modules/codec/vorbis.c b/modules/codec/vorbis.c index aa8fd8af7c..6b8ac878a1 100644 --- a/modules/codec/vorbis.c +++ b/modules/codec/vorbis.c @@ -2,7 +2,7 @@ * vorbis.c: vorbis decoder/encoder/packetizer module making use of libvorbis. ***************************************************************************** * Copyright (C) 2001-2003 VideoLAN - * $Id: vorbis.c,v 1.25 2003/11/23 15:50:07 gbazin Exp $ + * $Id: vorbis.c,v 1.26 2003/12/06 22:50:08 jpsaman Exp $ * * Authors: Gildas Bazin * @@ -642,7 +642,8 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf ) ogg_packet oggpacket; block_t *p_block, *p_chain = NULL; float **buffer; - int i, j; + int i; + unsigned int j; p_sys->i_pts = p_aout_buf->start_date - (mtime_t)1000000 * (mtime_t)p_sys->i_samples_delay /