Use abs instead of fabs to please compiler
This commit is contained in:
parent
064ebd5b87
commit
7bd87c32dd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue