From 770209de6dbddbf3f8422fe1c8c6f3a8bd630beb Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 29 Jul 2022 17:07:17 -0700 Subject: [PATCH] neatogen constrained_majorization_vpsc: s/fabs/fabsf when dealing with floats This squashes a -Wfloat-conversion warning. --- lib/neatogen/quad_prog_vpsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neatogen/quad_prog_vpsc.c b/lib/neatogen/quad_prog_vpsc.c index c892e5931..db44e9fb3 100644 --- a/lib/neatogen/quad_prog_vpsc.c +++ b/lib/neatogen/quad_prog_vpsc.c @@ -156,7 +156,7 @@ constrained_majorization_vpsc(CMajEnvVPSC * e, float *b, float *place, if (beta > 0 && beta < 1.0) { place[i] = old_place[i] + beta * d[i]; } - test += fabs(place[i] - old_place[i]); + test += fabsf(place[i] - old_place[i]); } #ifdef CONMAJ_LOGGING float stress = 0; -- 2.40.0