eina/bezier: use FLT_EQ marcro for float equal comparison.

Reviewers: SanghyeonLee, jpeg, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5828
This commit is contained in:
subhransu mohanty 2018-02-28 15:15:20 +09:00 committed by SangHyeon Lee
parent ec3784774d
commit 2bad5fffce
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ _eina_bezier_length_helper(const Eina_Bezier *b)
chord = _line_length(b->start.x, b->start.y, b->end.x, b->end.y);
if (fabsf(len - chord) > FLT_MIN) {
if (!EINA_FLT_EQ(len, chord)) {
_eina_bezier_split(b, &left, &right); /* split in two */
length =
_eina_bezier_length_helper(&left) + /* try left side */