edje: fix float comparison warning in Box Layout logic.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 20 Dec 2016 23:58:48 +0000 (15:58 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000 (16:39 -0800)
src/lib/edje/edje_box_layout.c

index 8ba073c..1abfbc9 100644 (file)
@@ -166,7 +166,7 @@ _edje_box_recalc_apply(Edje *ed EINA_UNUSED, Edje_Real_Part *ep, Edje_Calc_Param
    if ((ep->type != EDJE_RP_TYPE_CONTAINER) ||
        (!ep->typedata.container)) return;
 
-   if ((ep->param2) && (ep->description_pos != ZERO))
+   if ((ep->param2) && (NEQ(ep->description_pos, ZERO)))
      {
         Edje_Part_Description_Box *param2_desc = (Edje_Part_Description_Box *)ep->param2->description;
         if (ep->typedata.container->anim->end.layout == NULL)