Ignore:
Timestamp:
01/01/12 18:05:19 (13 years ago)
Author:
r2d
Message:

removed some gcc warnings and compilation issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/mpc_demux.c

    r476 r477  
    7979}
    8080
    81 // Returns the amount of unread bytes in the demux buffer.
    82 static mpc_uint32_t mpc_unread_bytes(mpc_demux * d) {
    83         mpc_int32_t unread_bytes = mpc_unread_bytes_unchecked(d);
    84 
    85         if (unread_bytes < 0) return 0;
    86        
    87         return (mpc_uint32_t) unread_bytes;
    88 }
    89 
    90 
    9181
    9282// Returns the number of bytes available in the buffer.
     
    9787        int offset = 0;
    9888
    99         if ((mpc_int32_t)
    100                 unread_bytes < 0) return 0; // Error - we've been reading past the end of the buffer - abort
     89        if ((mpc_int32_t) unread_bytes < 0)
     90                return 0; // Error - we've been reading past the end of the buffer - abort
    10191
    10292        if (min_bytes == 0 || min_bytes > DEMUX_BUFFER_SIZE ||
Note: See TracChangeset for help on using the changeset viewer.