diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-02-15 20:23:10 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-02-15 20:23:10 +0000 |
| commit | 1ec83e2069f5d018659f8eb6e7aad7bbeb72a270 (patch) | |
| tree | b2cdb7b441167682fbf59fbe032cd77286761fd8 /apps/codecs/libmad/frame.c | |
| parent | f59bfba60527cd0fa4f88eb8012d597533e3f310 (diff) | |
| download | rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.zip rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.tar.gz rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.tar.bz2 rockbox-1ec83e2069f5d018659f8eb6e7aad7bbeb72a270.tar.xz | |
Very minor changes to remove compiler warnings (tested with gcc-3.4.2 under Linux)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5958 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmad/frame.c')
| -rw-r--r-- | apps/codecs/libmad/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libmad/frame.c b/apps/codecs/libmad/frame.c index 4b592d0..9a6dca0 100644 --- a/apps/codecs/libmad/frame.c +++ b/apps/codecs/libmad/frame.c @@ -315,7 +315,7 @@ int mad_header_decode(struct mad_header *header, struct mad_stream *stream) if (!stream->sync) ptr = stream->this_frame; - if (end - ptr < stream->skiplen) { + if (end - ptr < (long) stream->skiplen) { stream->skiplen -= end - ptr; stream->next_frame = end; @@ -400,7 +400,7 @@ int mad_header_decode(struct mad_header *header, struct mad_stream *stream) } /* verify there is enough data left in buffer to decode this frame */ - if (N + MAD_BUFFER_GUARD > end - stream->this_frame) { + if ((long)(N + MAD_BUFFER_GUARD) > end - stream->this_frame) { stream->next_frame = stream->this_frame; stream->error = MAD_ERROR_BUFLEN; |