summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_util.h')
-rw-r--r--src/lib/eina/eina_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_util.h b/src/lib/eina/eina_util.h
index 6afd424..08b1523 100644
--- a/src/lib/eina/eina_util.h
+++ b/src/lib/eina/eina_util.h
@@ -78,7 +78,7 @@ static inline Eina_Bool eina_flt_exact(float a, float b);
78 * 78 *
79 * @return @c true if two floats match 79 * @return @c true if two floats match
80 */ 80 */
81#define EINA_FLT_EQ(a, b) (!!(fabsf((float)a - (float)b) <= FLT_EPSILON)) 81#define EINA_FLT_EQ(a, b) (!!(fabsf((float)(a) - (float)(b)) <= FLT_EPSILON))
82 82
83/** 83/**
84 * @brief Determines if a float is not zero 84 * @brief Determines if a float is not zero
@@ -97,7 +97,7 @@ static inline Eina_Bool eina_flt_exact(float a, float b);
97 * 97 *
98 * @return @c true if two double match 98 * @return @c true if two double match
99 */ 99 */
100#define EINA_DBL_EQ(a, b) (!!(fabs((double)a - (double)b) <= DBL_EPSILON)) 100#define EINA_DBL_EQ(a, b) (!!(fabs((double)(a) - (double)(b)) <= DBL_EPSILON))
101 101
102/** 102/**
103 * @brief Determines if a double is not zero 103 * @brief Determines if a double is not zero