xartigas pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b4749dc6abb5e08ba9e53a28625e28cac014be18

commit b4749dc6abb5e08ba9e53a28625e28cac014be18
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue May 12 09:21:26 2020 +0200

    edje: resolve float compare warnings
    
    Summary: Depends on D11797
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D11798
---
 src/lib/edje/edje_box_layout.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/edje/edje_box_layout.c b/src/lib/edje/edje_box_layout.c
index a3458cf281..51a91701b3 100644
--- a/src/lib/edje/edje_box_layout.c
+++ b/src/lib/edje/edje_box_layout.c
@@ -108,7 +108,7 @@ _edje_box_layout(Evas_Object *obj, Evas_Object_Box_Data 
*priv, void *data)
 {
    Edje_Part_Box_Animation *anim = data;
 
-   if (anim->progress == 0.0)
+   if (EINA_DBL_EQ(anim->progress, 0.0))
      {
         if (anim->start.layout)
           {
@@ -195,7 +195,7 @@ _edje_box_recalc_apply(Edje *ed EINA_UNUSED, Edje_Real_Part 
*ep, Edje_Calc_Param
         ep->typedata.container->anim->end.layout = NULL;
      }
 
-   if (ep->description_pos == 0.0 || 
!ep->typedata.container->anim->start.layout)
+   if (EINA_DBL_EQ(ep->description_pos, 0.0) || 
!ep->typedata.container->anim->start.layout)
      {
         _edje_box_layout_find_all(chosen_desc->box.layout, 
chosen_desc->box.alt_layout, &ep->typedata.container->anim->start.layout, 
&ep->typedata.container->anim->start.data, 
&ep->typedata.container->anim->start.free_data);
         ep->typedata.container->anim->start.padding.x = 
chosen_desc->box.padding.x;

-- 


Reply via email to