summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-20 11:16:59 -0500
committerChris Michael <cp.michael@samsung.com>2016-12-20 11:21:04 -0500
commit8120572d08ef39a6f3a1a1cff0be912fa469c85d (patch)
tree8060ff0f238ccff389ae036be2e0904ee60e6af9 /src/lib/ethumb
parentacb0ee2a9dc37df18444a684e90cf28117eeb9a1 (diff)
ethumb: remove float comparison warnings
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index b66c3f41c2..6a552f632d 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -1151,8 +1151,7 @@ ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h)
1151 *w = e->tw; 1151 *w = e->tw;
1152 *h = e->th; 1152 *h = e->th;
1153 1153
1154 if (ia == 0) 1154 if (EINA_DBL_CMP(ia, 0.0)) return;
1155 return;
1156 1155
1157 a = e->tw / (float)e->th; 1156 a = e->tw / (float)e->th;
1158 1157
@@ -1190,8 +1189,7 @@ ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw,
1190 *fx = 0; 1189 *fx = 0;
1191 *fy = 0; 1190 *fy = 0;
1192 1191
1193 if (ia == 0) 1192 if (EINA_DBL_CMP(ia, 0.0)) return;
1194 return;
1195 1193
1196 a = e->tw / (float)e->th; 1194 a = e->tw / (float)e->th;
1197 1195
@@ -1736,7 +1734,7 @@ ethumb_dup(const Ethumb *e)
1736} 1734}
1737 1735
1738#define CHECK_DELTA(Param) \ 1736#define CHECK_DELTA(Param) \
1739 if (e1->Param != e2->Param) \ 1737 if (!EINA_DBL_CMP(e1->Param, e2->Param)) \
1740 return EINA_TRUE; 1738 return EINA_TRUE;
1741 1739
1742EAPI Eina_Bool 1740EAPI Eina_Bool