Commit e41a52d9 authored by Rosen Penev's avatar Rosen Penev Committed by Max Kellermann

change abs() to std::abs()

Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent 01e00632
......@@ -327,7 +327,7 @@ playlist::MoveRange(PlayerControl &pc,
throw PlaylistError::BadRange();
if ((to >= 0 && to + end - start - 1 >= GetLength()) ||
(to < 0 && unsigned(abs(to)) > GetLength()))
(to < 0 && unsigned(std::abs(to)) > GetLength()))
throw PlaylistError::BadRange();
if ((int)start == to)
......@@ -350,7 +350,7 @@ playlist::MoveRange(PlayerControl &pc,
if (start <= (unsigned)currentSong && (unsigned)currentSong < end)
/* no-op, can't be moved to offset of itself */
return;
to = (currentSong + abs(to)) % GetLength();
to = (currentSong + std::abs(to)) % GetLength();
if (start < (unsigned)to)
to -= end - start;
}
......
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