Commit 4c1b42b9 authored by Leslie Zhai's avatar Leslie Zhai
Browse files

Fix abs wrong overload for GCC 6.x

parent eaa16c4e
......@@ -376,7 +376,7 @@ void KCompactDisc::playTrack(unsigned track)
d->m_statusExpected = KCompactDisc::Playing;
d->m_trackExpectedPosition = 0;
d->m_seek = abs( (double) d->m_trackExpectedPosition - trackPosition());
d->m_seek = abs(int(d->m_trackExpectedPosition - trackPosition()));
d->playTrackPosition(track, 0);
}
......@@ -387,7 +387,7 @@ void KCompactDisc::playPosition(unsigned position)
d->m_statusExpected = Playing;
d->m_trackExpectedPosition = position;
d->m_seek = abs( (double) d->m_trackExpectedPosition - trackPosition());
d->m_seek = abs(int(d->m_trackExpectedPosition - trackPosition()));
d->playTrackPosition(d->m_track, position);
}
......
Supports Markdown
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