projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ba02d
)
Revert "ethumb: remove float comparison warnings"
author
Chris Michael
<cp.michael@samsung.com>
Tue, 20 Dec 2016 16:26:10 +0000
(11:26 -0500)
committer
Chris Michael
<cp.michael@samsung.com>
Tue, 20 Dec 2016 16:26:10 +0000
(11:26 -0500)
This broke building and needs to be fixed differently
This reverts commit
8120572d08ef39a6f3a1a1cff0be912fa469c85d
.
src/lib/ethumb/ethumb.c
patch
|
blob
|
history
diff --git
a/src/lib/ethumb/ethumb.c
b/src/lib/ethumb/ethumb.c
index
6a552f6
..
b66c3f4
100644
(file)
--- 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)
*w = e->tw;
*h = e->th;
- if (EINA_DBL_CMP(ia, 0.0)) return;
+ if (ia == 0)
+ return;
a = e->tw / (float)e->th;
@@
-1189,7
+1190,8
@@
ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw,
*fx = 0;
*fy = 0;
- if (EINA_DBL_CMP(ia, 0.0)) return;
+ if (ia == 0)
+ return;
a = e->tw / (float)e->th;
@@
-1734,7
+1736,7
@@
ethumb_dup(const Ethumb *e)
}
#define CHECK_DELTA(Param) \
- if (
!EINA_DBL_CMP(e1->Param, e2->Param))
\
+ if (
e1->Param != e2->Param)
\
return EINA_TRUE;
EAPI Eina_Bool