discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=a69a5a1796d5aafe5c45167bca43769562b70dd0
commit a69a5a1796d5aafe5c45167bca43769562b70dd0 Author: Mike Blumenkrantz <[email protected]> Date: Sun Sep 7 23:01:54 2014 -0400 add dblequal() util function to be used for addressing the infinite comparison warnings --- src/bin/e_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/e_utils.h b/src/bin/e_utils.h index ae5d8bc..39c1a71 100644 --- a/src/bin/e_utils.h +++ b/src/bin/e_utils.h @@ -93,5 +93,11 @@ isedje(const Evas_Object *obj) return obj && !e_util_strcmp(evas_object_type_get(obj), "edje"); } +static inline Eina_Bool +dblequal(double a, double b) +{ + return fabs(a - b) < DBL_EPSILON; +} + #endif #endif --
