From 91fb7fa3d874424533298be50abce943da36c65e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 18 Mar 2016 17:49:29 +0100 Subject: [PATCH] queue/Playlist: pass unsigned to PlayOrder() --- src/queue/Playlist.cxx | 4 ++-- src/queue/Playlist.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/queue/Playlist.cxx b/src/queue/Playlist.cxx index 136682b00..f7984b34a 100644 --- a/src/queue/Playlist.cxx +++ b/src/queue/Playlist.cxx @@ -152,14 +152,14 @@ playlist::UpdateQueuedSong(PlayerControl &pc, const DetachedSong *prev) } bool -playlist::PlayOrder(PlayerControl &pc, int order, Error &error) +playlist::PlayOrder(PlayerControl &pc, unsigned order, Error &error) { playing = true; queued = -1; const DetachedSong &song = queue.GetOrder(order); - FormatDebug(playlist_domain, "play %i:\"%s\"", order, song.GetURI()); + FormatDebug(playlist_domain, "play %u:\"%s\"", order, song.GetURI()); current = order; diff --git a/src/queue/Playlist.hxx b/src/queue/Playlist.hxx index 28bff09d1..16d449ba7 100644 --- a/src/queue/Playlist.hxx +++ b/src/queue/Playlist.hxx @@ -271,7 +271,7 @@ public: bool PlayPosition(PlayerControl &pc, int position, Error &error); - bool PlayOrder(PlayerControl &pc, int order, Error &error); + bool PlayOrder(PlayerControl &pc, unsigned order, Error &error); bool PlayId(PlayerControl &pc, int id, Error &error);