diff options
author | Max Kellermann <max@duempel.org> | 2014-11-26 08:21:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-26 08:21:55 +0100 |
commit | 2e7153d8d61548afdd84c2a0000af0571b84e62e (patch) | |
tree | edd6a40ec80820b30ec6ce56d277ca78b2ccf601 /src | |
parent | 70b5a81a290e5f483e93c59413d5bd29d2047063 (diff) | |
download | mpd-2e7153d8d61548afdd84c2a0000af0571b84e62e.tar.gz mpd-2e7153d8d61548afdd84c2a0000af0571b84e62e.tar.xz mpd-2e7153d8d61548afdd84c2a0000af0571b84e62e.zip |
DatabasePrint: cast int to unsigned before comparison
Fixes compiler warning.
Diffstat (limited to '')
-rw-r--r-- | src/db/DatabasePrint.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx index 945ac6ab9..c38f1c277 100644 --- a/src/db/DatabasePrint.cxx +++ b/src/db/DatabasePrint.cxx @@ -169,7 +169,8 @@ db_selection_print(Client &client, const DatabaseSelection &selection, std::ref(client), base, _1, _2) : VisitPlaylist(); - if (window_start > 0 || window_end < std::numeric_limits<int>::max()) + if (window_start > 0 || + window_end < (unsigned)std::numeric_limits<int>::max()) s = [s, window_start, window_end, &i](const LightSong &song, Error &error2){ const bool in_window = i >= window_start && i < window_end; |