summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-05-12 09:21:35 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2020-05-12 16:10:02 +0200
commit500e762d64598dcd0286e32876654e407c0309f3 (patch)
tree66494202743e275ff7c949d49fe141e3db83ce6d /src/static_libs
parentb4749dc6abb5e08ba9e53a28625e28cac014be18 (diff)
static/triangulator: resolve float compare warnings
Summary: Depends on D11798 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11799
Diffstat (limited to 'src/static_libs')
-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 }