From dbc9b5a21677be979871977945614e762d1c53bb Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 21 Sep 2009 21:53:29 +0200 Subject: get rid of warnings about signed and unsigned integer comparison --- src/display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/display.cpp b/src/display.cpp index c07d01e7..f2099f43 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -105,7 +105,7 @@ void Display::SongsInColumns(const MPD::Song &s, void *, Menu *menu) if (!s.Localized()) const_cast(&s)->Localize(); - bool is_now_playing = menu == myPlaylist->Items && menu->CurrentlyDrawedPosition() == myPlaylist->NowPlaying; + bool is_now_playing = menu == myPlaylist->Items && menu->CurrentlyDrawedPosition() == size_t(myPlaylist->NowPlaying); if (is_now_playing) *menu << Config.now_playing_prefix; @@ -217,7 +217,7 @@ void Display::Songs(const MPD::Song &s, void *data, Menu *menu) if (!s.Localized()) const_cast(&s)->Localize(); - bool is_now_playing = menu == myPlaylist->Items && menu->CurrentlyDrawedPosition() == myPlaylist->NowPlaying; + bool is_now_playing = menu == myPlaylist->Items && menu->CurrentlyDrawedPosition() == size_t(myPlaylist->NowPlaying); if (is_now_playing) *menu << Config.now_playing_prefix; -- cgit v1.2.3