summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-05-03 20:48:40 +0200
committerRobin Gareus <robin@gareus.org>2020-05-03 20:48:40 +0200
commitd387a6d664cd53728faa3e0d92de3fd3f4185269 (patch)
treeb28fa7c220b8e0cf1a3a90bf942c39c51e7adf2f /gtk2_ardour
parenta47fac7638dc69051ff4778e08dfccef539195bb (diff)
Fix a compiler warning std::abs vs fabsf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mono_panner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/mono_panner.cc b/gtk2_ardour/mono_panner.cc
index 6c113e122c..fb01fb53b3 100644
--- a/gtk2_ardour/mono_panner.cc
+++ b/gtk2_ardour/mono_panner.cc
@@ -420,7 +420,7 @@ MonoPanner::on_motion_notify_event (GdkEventMotion* ev)
double delta = (ev->x - last_drag_x) / (double) w;
/* create a detent close to the center, at approx 1/180 deg */
- if (!detented && fabsf (position_control->get_value() - .5) < 0.006) {
+ if (!detented && fabsf (position_control->get_value() - .5f) < 0.006f) {
detented = true;
/* snap to center */
position_control->set_value (0.5, Controllable::NoGroup);