diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-09-21 21:53:29 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-09-21 21:53:29 +0200 |
commit | dbc9b5a21677be979871977945614e762d1c53bb (patch) | |
tree | 647fc22ecdb3bc95abe07cc5936c8012cc5d530e /src | |
parent | 0a1d2e37ae17d8888e515b52cc7dd30c71e56a6f (diff) |
get rid of warnings about signed and unsigned integer comparison
Diffstat (limited to 'src')
-rw-r--r-- | src/display.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<MPD::Song> *menu) if (!s.Localized()) const_cast<MPD::Song *>(&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<MPD::Song> *menu) if (!s.Localized()) const_cast<MPD::Song *>(&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; |