summaryrefslogtreecommitdiff
path: root/src/static_libs/triangulator/triangulator_stroker.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/static_libs/triangulator/triangulator_stroker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static_libs/triangulator/triangulator_stroker.c b/src/static_libs/triangulator/triangulator_stroker.c
index cf07bec5a3..12847cb51a 100644
--- a/src/static_libs/triangulator/triangulator_stroker.c
+++ b/src/static_libs/triangulator/triangulator_stroker.c
@@ -409,8 +409,8 @@ _end_cap_or_join_closed(Triangulator_Stroker *stroker,
409static inline void 409static inline void
410_skip_duplicate_points(const double **pts, const double *end_pts) 410_skip_duplicate_points(const double **pts, const double *end_pts)
411{ 411{
412 while ((*pts + 2) < end_pts && (*pts)[0] == (*pts)[2] && 412 while ((*pts + 2) < end_pts && EINA_DBL_EQ((*pts)[0], (*pts)[2]) &&
413 EINA_FLT_EQ((*pts)[1], (*pts)[3])) 413 EINA_DBL_EQ((*pts)[1], (*pts)[3]))
414 { 414 {
415 *pts += 2; 415 *pts += 2;
416 } 416 }