summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 972d0ea755..b0007e49bd 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1417,7 +1417,7 @@ static int remove_track_unlocked(struct playlist_info* playlist,
1417 * to make sure the current index is still pointing to correct track. 1417 * to make sure the current index is still pointing to correct track.
1418 */ 1418 */
1419static void find_and_set_playlist_index_unlocked(struct playlist_info* playlist, 1419static void find_and_set_playlist_index_unlocked(struct playlist_info* playlist,
1420 unsigned int seek) 1420 unsigned long seek)
1421{ 1421{
1422 int i; 1422 int i;
1423 1423
@@ -1443,7 +1443,7 @@ static int randomise_playlist_unlocked(struct playlist_info* playlist,
1443{ 1443{
1444 int count; 1444 int count;
1445 int candidate; 1445 int candidate;
1446 unsigned int current = playlist->indices[playlist->index]; 1446 unsigned long current = playlist->indices[playlist->index];
1447 1447
1448 /* seed 0 is used to identify sorted playlist for resume purposes */ 1448 /* seed 0 is used to identify sorted playlist for resume purposes */
1449 if (seed == 0) 1449 if (seed == 0)
@@ -1459,7 +1459,7 @@ static int randomise_playlist_unlocked(struct playlist_info* playlist,
1459 candidate = rand() % (count + 1); 1459 candidate = rand() % (count + 1);
1460 1460
1461 /* now swap the values at the 'count' and 'candidate' positions */ 1461 /* now swap the values at the 'count' and 'candidate' positions */
1462 int indextmp = playlist->indices[candidate]; 1462 unsigned long indextmp = playlist->indices[candidate];
1463 playlist->indices[candidate] = playlist->indices[count]; 1463 playlist->indices[candidate] = playlist->indices[count];
1464 playlist->indices[count] = indextmp; 1464 playlist->indices[count] = indextmp;
1465#ifdef HAVE_DIRCACHE 1465#ifdef HAVE_DIRCACHE
@@ -1525,7 +1525,7 @@ static int sort_compare_fn(const void* p1, const void* p2)
1525static int sort_playlist_unlocked(struct playlist_info* playlist, 1525static int sort_playlist_unlocked(struct playlist_info* playlist,
1526 bool start_current, bool write) 1526 bool start_current, bool write)
1527{ 1527{
1528 unsigned int current = playlist->indices[playlist->index]; 1528 unsigned long current = playlist->indices[playlist->index];
1529 1529
1530 if (playlist->amount > 0) 1530 if (playlist->amount > 0)
1531 qsort((void*)playlist->indices, playlist->amount, 1531 qsort((void*)playlist->indices, playlist->amount,