Changeset a9cfe158c44a1b2ec6f64e9cf73c15048dac4c9a

Show
Ignore:
Timestamp:
01/07/05 17:54:27 (3 years ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1120233267 +0000
git-parent:

[56c786eb0a134b1492ce7aacfd13f9304398c97a]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1120233267 +0000
Message:

Unsigned casts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/aiff.c

    r91f2877 ra9cfe15  
    159159 
    160160            p_sys->i_ssnd_pos = stream_Tell( p_demux->s ); 
    161             p_sys->i_ssnd_size= i_size; 
     161            p_sys->i_ssnd_size = i_size; 
    162162            p_sys->i_ssnd_offset = GetDWBE( &p_peek[8] ); 
    163163            p_sys->i_ssnd_blocksize = GetDWBE( &p_peek[12] ); 
     
    173173 
    174174        /* Skip this chunk */ 
    175         if( stream_Read( p_demux->s, NULL, i_size + 8 ) != i_size + 8 ) 
     175        i_size += 8; 
     176        if( stream_Read( p_demux->s, NULL, i_size ) != (int)i_size ) 
    176177        { 
    177178            msg_Warn( p_demux, "incomplete file" ); 
  • modules/demux/mkv.cpp

    r3ff2f30 ra9cfe15  
    25732573                    btni_t *button_ptr = &(pci->hli.btnit[button-1]); 
    25742574 
    2575                     if((valx.i_int >= button_ptr->x_start) && (valx.i_int <= button_ptr->x_end) && 
    2576                        (valy.i_int >= button_ptr->y_start) && (valy.i_int <= button_ptr->y_end))  
     2575                    if(((unsigned)valx.i_int >= button_ptr->x_start) 
     2576                     && ((unsigned)valx.i_int <= button_ptr->x_end) 
     2577                     && ((unsigned)valy.i_int >= button_ptr->y_start) 
     2578                     && ((unsigned)valy.i_int <= button_ptr->y_end))  
    25772579                    { 
    25782580                        mx = (button_ptr->x_start + button_ptr->x_end)/2;