summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-12 12:57:16 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-12 12:57:16 +0000
commit5203f0645e4c586da0a3151488097f8d29bf0d2b (patch)
treeab517773500f7990f54a8fd9551d2cc23cf6bf7b /apps/playlist.c
parent06f1c0afc656b940a61efa50eac035bcc3eb4eaa (diff)
downloadrockbox-5203f0645e4c586da0a3151488097f8d29bf0d2b.tar.gz
rockbox-5203f0645e4c586da0a3151488097f8d29bf0d2b.zip
long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5934 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 5eb7d6b450..0bca7f4021 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -412,7 +412,7 @@ static int add_track_to_playlist(struct playlist_info* playlist,
412 bool queue, int seek_pos) 412 bool queue, int seek_pos)
413{ 413{
414 int insert_position = position; 414 int insert_position = position;
415 unsigned int flags = PLAYLIST_INSERT_TYPE_INSERT; 415 unsigned long flags = PLAYLIST_INSERT_TYPE_INSERT;
416 int i; 416 int i;
417 417
418 if (playlist->amount >= playlist->max_playlist_size) 418 if (playlist->amount >= playlist->max_playlist_size)
@@ -897,10 +897,10 @@ static void find_and_set_playlist_index(struct playlist_info* playlist,
897 */ 897 */
898static int compare(const void* p1, const void* p2) 898static int compare(const void* p1, const void* p2)
899{ 899{
900 unsigned int* e1 = (unsigned int*) p1; 900 unsigned long* e1 = (unsigned long*) p1;
901 unsigned int* e2 = (unsigned int*) p2; 901 unsigned long* e2 = (unsigned long*) p2;
902 unsigned int flags1 = *e1 & PLAYLIST_INSERT_TYPE_MASK; 902 unsigned long flags1 = *e1 & PLAYLIST_INSERT_TYPE_MASK;
903 unsigned int flags2 = *e2 & PLAYLIST_INSERT_TYPE_MASK; 903 unsigned long flags2 = *e2 & PLAYLIST_INSERT_TYPE_MASK;
904 904
905 if (flags1 == flags2) 905 if (flags1 == flags2)
906 return (*e1 & PLAYLIST_SEEK_MASK) - (*e2 & PLAYLIST_SEEK_MASK); 906 return (*e1 & PLAYLIST_SEEK_MASK) - (*e2 & PLAYLIST_SEEK_MASK);