summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeslie Zhai <xiangzhai83@gmail.com>2016-07-18 03:13:52 (GMT)
committerLeslie Zhai <xiangzhai83@gmail.com>2016-07-18 03:13:52 (GMT)
commit4c1b42b9252b430288af46cecc650fe846c07482 (patch)
treead4b37ffd1952ccc06b7088470741bc1c28e6d47
parenteaa16c4e88d67bcf14fc112b45f4fd45045320bc (diff)
Fix abs wrong overload for GCC 6.x
-rw-r--r--src/kcompactdisc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kcompactdisc.cpp b/src/kcompactdisc.cpp
index 7b5d819..ca278eb 100644
--- a/src/kcompactdisc.cpp
+++ b/src/kcompactdisc.cpp
@@ -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);
}