From 7bd87c32dd995592c766c1450d440c7669acb300 Mon Sep 17 00:00:00 2001 From: Jaap Haitsma Date: Wed, 25 Aug 2021 14:50:45 -0400 Subject: [PATCH] Use abs instead of fabs to please compiler --- lib/identify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/identify.c b/lib/identify.c index a4be804..1900b67 100644 --- a/lib/identify.c +++ b/lib/identify.c @@ -650,8 +650,8 @@ static void find_leftmost_to_line(void *user_data, int y, int left, int right) static double length(struct quirc_point a, struct quirc_point b) { - double x = fabs(a.x - b.x) + 1; - double y = fabs(a.y - b.y) + 1; + double x = abs(a.x - b.x) + 1; + double y = abs(a.y - b.y) + 1; return sqrt(x * x + y * y); } /* Estimate grid size by determing distance between capstones