summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2006-08-30 16:27:00 +0000
committerMagnus Holmgren <magnushol@gmail.com>2006-08-30 16:27:00 +0000
commit92f07a65ad0fee18fecb0e38daf460bf05568cb2 (patch)
tree77b955ae9acf24dee0668800fd4872329fb5ba3e /apps/playback.c
parent719d22092554b3f26aed9a7c5e21a2ef3bd86065 (diff)
Fix warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10808 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index adb676e7b1..3c8585b50f 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1477,7 +1477,7 @@ static void audio_read_file(bool quick)
overlap = buf_widx - tracks[track_ridx].buf_idx;
if (buf_widx >= filebuflen)
buf_widx -= filebuflen;
- if (overlap >= filebuflen)
+ if (overlap > 0 && (unsigned) overlap >= filebuflen)
overlap -= filebuflen;
if (overlap > 0 && overlap <= rc && tracks[track_ridx].available != 0) {