summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_renderer_software_gradient_linear.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-12-20 10:59:55 -0500
committerChris Michael <cp.michael@samsung.com>2016-12-20 10:59:55 -0500
commit8ce2d991500300d466ff3572fcd60400083880d4 (patch)
treed3466d863b1771aeaf39691e36f504747c2bebe5 /src/lib/ector/software/ector_renderer_software_gradient_linear.c
parent7507efc2600bd65c0d61e0a072cf2fa25b6e4ae8 (diff)
ector: remove float comparison warnings
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ector/software/ector_renderer_software_gradient_linear.c')
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_linear.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_linear.c b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
index 69bf9e42d9..616040239b 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_linear.c
+++ b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
@@ -34,7 +34,7 @@ _ector_renderer_software_gradient_linear_ector_renderer_prepare(Eo *obj,
34 pd->linear.l = pd->linear.dx * pd->linear.dx + pd->linear.dy * pd->linear.dy; 34 pd->linear.l = pd->linear.dx * pd->linear.dx + pd->linear.dy * pd->linear.dy;
35 pd->linear.off = 0; 35 pd->linear.off = 0;
36 36
37 if (pd->linear.l != 0) 37 if (!EINA_DBL_CMP(pd->linear.l, 0.0))
38 { 38 {
39 pd->linear.dx /= pd->linear.l; 39 pd->linear.dx /= pd->linear.l;
40 pd->linear.dy /= pd->linear.l; 40 pd->linear.dy /= pd->linear.l;