aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rosegarden/nearbyintf.patch
blob: d8d2a706e2207918591e2700521288725b180cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
uclibc does not have nearbyintf

--- ./src/gui/widgets/Fader.cpp.orig
+++ ./src/gui/widgets/Fader.cpp
@@ -222,7 +222,7 @@
     if (m_integral) {
         float sliderLength = float(m_sliderMax) - float(m_sliderMin);
         position =
-            int(nearbyintf(sliderLength * (value - float(m_min)) / float(m_max - m_min) + 0.1));
+            int(nearbyint(sliderLength * (value - float(m_min)) / float(m_max - m_min) + 0.1));
     } else {
         position =
             AudioLevel::dB_to_fader