diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-08-09 08:54:46 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-09 08:54:46 +0000 |
commit | a2f9fb6a33d1fe60d93c41f72abe9e35d0013ea4 (patch) | |
tree | 2c8a9740bd76514a13642b0050b175f1b1bf906e | |
parent | 54ad65d2f53e040a04f1ea81b831c7c8b8f4f9ca (diff) | |
download | rockbox-a2f9fb6a33d1fe60d93c41f72abe9e35d0013ea4.tar.gz rockbox-a2f9fb6a33d1fe60d93c41f72abe9e35d0013ea4.zip |
Support double negative wrap (with a half nelson)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1632 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index cbd8eeb6a2..92a7ad979b 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -78,7 +78,7 @@ char* playlist_next(int steps) char *dir_end; playlist.index = (playlist.index+steps) % playlist.amount; - if ( playlist.index < 0 ) { + while ( playlist.index < 0 ) { if ( global_settings.loop_playlist ) playlist.index += playlist.amount; else |