From d387a6d664cd53728faa3e0d92de3fd3f4185269 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 3 May 2020 20:48:40 +0200 Subject: [PATCH] Fix a compiler warning std::abs vs fabsf --- gtk2_ardour/mono_panner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);