ephysic: comparing with same statement.
authorSubodh Kumar <s7158.kumar@samsung.com>
Mon, 9 Oct 2017 23:40:11 +0000 (16:40 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Mon, 9 Oct 2017 23:40:17 +0000 (16:40 -0700)
Summary:
There is no effect of comparing with same expression.
@fix

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5271

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
src/lib/ephysics/ephysics_body.cpp

index 8998d89..b2a4ee9 100644 (file)
@@ -447,7 +447,7 @@ _ephysics_body_evas_stacking_sort_cb(const void *d1, const void *d2)
    if (!stacking2) return -1;
 
    if (stacking1->stacking < stacking2->stacking) return -1;
-   if (stacking1->stacking > stacking1->stacking) return 1;
+   if (stacking1->stacking > stacking2->stacking) return 1;
 
    return 0;
 }