Commit 2e7153d8 authored by Max Kellermann's avatar Max Kellermann

DatabasePrint: cast int to unsigned before comparison

Fixes compiler warning.
parent 70b5a81a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment