From 9f75cd52d87c670176235302f50161bd6ebc7fc1 Mon Sep 17 00:00:00 2001 From: Wiimm Date: Mon, 27 Jul 2020 12:52:34 +0200 Subject: r8228: solved most mac warnings --- project/src/lib-numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'project/src/lib-numeric.c') diff --git a/project/src/lib-numeric.c b/project/src/lib-numeric.c index bfe5ecb..08c88af 100644 --- a/project/src/lib-numeric.c +++ b/project/src/lib-numeric.c @@ -718,12 +718,12 @@ double AngleVector const double ax = point[0] - prev[0]; const double az = point[2] - prev[2]; - if ( abs(ax) + abs(az) < 1e-6 ) + if ( fabs(ax) + fabs(az) < 1e-6 ) return 0.0; const double bx = next[0] - point[0]; const double bz = next[2] - point[2]; - if ( abs(bx) + abs(bz) < 1e-6 ) + if ( fabs(bx) + fabs(bz) < 1e-6 ) return 0.0; if (!return_degree) -- cgit v1.3.1