13
0

Fix a compiler warning std::abs vs fabsf

This commit is contained in:
Robin Gareus 2020-05-03 20:48:40 +02:00
parent a47fac7638
commit d387a6d664
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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);