static/triangulator: resolve float compare warnings

Summary: Depends on D11798

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11799
This commit is contained in:
Mike Blumenkrantz 2020-05-12 09:21:35 +02:00 committed by Xavi Artigas
parent b4749dc6ab
commit 500e762d64
1 changed files with 2 additions and 2 deletions

View File

@ -409,8 +409,8 @@ _end_cap_or_join_closed(Triangulator_Stroker *stroker,
static inline void
_skip_duplicate_points(const double **pts, const double *end_pts)
{
while ((*pts + 2) < end_pts && (*pts)[0] == (*pts)[2] &&
EINA_FLT_EQ((*pts)[1], (*pts)[3]))
while ((*pts + 2) < end_pts && EINA_DBL_EQ((*pts)[0], (*pts)[2]) &&
EINA_DBL_EQ((*pts)[1], (*pts)[3]))
{
*pts += 2;
}