summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-20 11:26:10 -0500
committerChris Michael <cp.michael@samsung.com>2016-12-20 11:26:10 -0500
commit913479199dffe7e6e384b518fcb3a1fd127ab223 (patch)
treeb4b4677a1d1a30492bdf6243916c8fbb26596b20 /src/lib/ethumb
parent02ba02d6a9a5c7460b6f6ce5534d7bed06c886b1 (diff)
Revert "ethumb: remove float comparison warnings"
This broke building and needs to be fixed differently This reverts commit 8120572d08ef39a6f3a1a1cff0be912fa469c85d.
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index 6a552f632d..b66c3f41c2 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -1151,7 +1151,8 @@ 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 (EINA_DBL_CMP(ia, 0.0)) return; 1154 if (ia == 0)
1155 return;
1155 1156
1156 a = e->tw / (float)e->th; 1157 a = e->tw / (float)e->th;
1157 1158
@@ -1189,7 +1190,8 @@ ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw,
1189 *fx = 0; 1190 *fx = 0;
1190 *fy = 0; 1191 *fy = 0;
1191 1192
1192 if (EINA_DBL_CMP(ia, 0.0)) return; 1193 if (ia == 0)
1194 return;
1193 1195
1194 a = e->tw / (float)e->th; 1196 a = e->tw / (float)e->th;
1195 1197
@@ -1734,7 +1736,7 @@ ethumb_dup(const Ethumb *e)
1734} 1736}
1735 1737
1736#define CHECK_DELTA(Param) \ 1738#define CHECK_DELTA(Param) \
1737 if (!EINA_DBL_CMP(e1->Param, e2->Param)) \ 1739 if (e1->Param != e2->Param) \
1738 return EINA_TRUE; 1740 return EINA_TRUE;
1739 1741
1740EAPI Eina_Bool 1742EAPI Eina_Bool