edje: fix float comparison warning in edje callback code.
authorCedric BAIL <cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:00:05 +0000 (16:00 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000 (16:39 -0800)
src/lib/edje/edje_callbacks.c

index c92f329..8a32093 100644 (file)
@@ -320,7 +320,7 @@ _edje_mouse_move_signal_cb(void *data, const Efl_Event *event)
              FLOAT_T dx, dy;
 
              _edje_part_dragable_calc(ed, rp, &dx, &dy);
-             if ((dx != rp->drag->val.x) || (dy != rp->drag->val.y))
+             if ((NEQ(dx, rp->drag->val.x)) || (NEQ(dy, rp->drag->val.y)))
                {
                   rp->drag->val.x = dx;
                   rp->drag->val.y = dy;