This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch dev/dimmus/test
in repository efl.

View the commit online.

commit ab20fb903ce1da3f847306907b833be0d6e4014b
Author: dimmus <dmitri.chudi...@gmail.com>
AuthorDate: Mon Oct 21 14:06:36 2024 +0500

    ecore: make safe double comparing
---
 src/lib/ecore/ecore_anim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index e4cf21c9ff..89f84f333c 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -684,7 +684,7 @@ _bezier_t_get(double _x, double _x1, double _x2)
         if (root2 >= 0.0 && root2 <= 1.0) return root2;
         if (root3 >= 0.0 && root3 <= 1.0) return root3;
      }
-   else if (discriminant == 0)
+   else if (!EINA_DBL_NONZERO(discriminant))
      {
         u1 = q2 < 0 ? cuberoot(-q2) : -cuberoot(q2);
         root1 = 2*u1 - a/3.0;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to