xartigas pushed a commit to branch master.

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

commit 8559b0472e0327b231d6a2d3e945c07725e46c0c
Author: Wonki Kim <wonki_....@samsung.com>
Date:   Fri Nov 22 12:40:17 2019 +0100

    efl_ui_table: modify comparing logic
    
    Summary:
    pad.h/v are integer varaibles, and also parameters h/v are too.
    so that it is not needed to compare them like they are floating pointer.
    
    Reviewers: bu5hm4n, segfaultxavi
    
    Reviewed By: segfaultxavi
    
    Subscribers: segfaultxavi, cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D10722
---
 src/lib/elementary/efl_ui_table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_table.c 
b/src/lib/elementary/efl_ui_table.c
index db259b0dd3..861b78ab3a 100644
--- a/src/lib/elementary/efl_ui_table.c
+++ b/src/lib/elementary/efl_ui_table.c
@@ -269,7 +269,7 @@ _efl_ui_table_efl_object_invalidate(Eo *obj, 
Efl_Ui_Table_Data *pd)
 EOLIAN static void
 _efl_ui_table_efl_gfx_arrangement_content_padding_set(Eo *obj, 
Efl_Ui_Table_Data *pd, unsigned int h, unsigned int v)
 {
-   if (EINA_DBL_EQ(pd->pad.h, h) && EINA_DBL_EQ(pd->pad.v, v))
+   if (pd->pad.h == h && pd->pad.v == v)
      return;
 
    pd->pad.h = h;

-- 


Reply via email to