From bd81e60d0e52bb1c913406dbd6e3a0cfc1145116 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 29 Jan 2012 19:15:20 +0000 Subject: [PATCH] snd_mp3.c (mp3_madseek): clang, -Wtautological-compare: fixed the "comparison of unsigned expression >= 0 is always true" warning for to_skip_samples. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@624 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/snd_mp3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Quake/snd_mp3.c b/Quake/snd_mp3.c index 70963ba8..07d81c6b 100644 --- a/Quake/snd_mp3.c +++ b/Quake/snd_mp3.c @@ -411,7 +411,7 @@ static int mp3_madseek(snd_stream_t *stream, unsigned long offset) depadded = true; mad_stream_buffer(&p->Stream, p->mp3_buffer + padding, leftover + bytes_read - padding); - while (to_skip_samples >= 0) /* Decode frame headers */ + while (1) /* Decode frame headers */ { static unsigned short samples; p->Stream.error = MAD_ERROR_NONE; @@ -473,7 +473,6 @@ static int mp3_madseek(snd_stream_t *stream, unsigned long offset) { p->FrameCount = offset / samples; to_skip_samples = offset % samples; - if (0 != FS_fseek(&stream->fh, (p->FrameCount * consumed / 64) + tagsize, SEEK_SET)) return -1;