cedric pushed a commit to branch master.

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

commit 3991f40cb9b7731115d8391ea2463200fc05c7f6
Author: Subodh Kumar <s7158.ku...@samsung.com>
Date:   Mon Oct 9 16:36:54 2017 -0700

    eina: same expression on both statement.
    
    Summary:
    Comparing with same expression is avoided.
    @fix
    
    Reviewers: cedric
    
    Subscribers: jpeg
    
    Differential Revision: https://phab.enlightenment.org/D5268
    
    Signed-off-by: Cedric Bail <ced...@osg.samsung.com>
---
 src/examples/eina/eina_tiler_02.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/examples/eina/eina_tiler_02.c 
b/src/examples/eina/eina_tiler_02.c
index 8266807e9b..fd46477d0e 100644
--- a/src/examples/eina/eina_tiler_02.c
+++ b/src/examples/eina/eina_tiler_02.c
@@ -178,9 +178,9 @@ void rect_update()
 
    for (i = 0; i < 2; i ++)
      {
-        if (rects[rect_idx][0][i].w > 0 && rects[rect_idx][0][i].w > 0)
+        if (rects[rect_idx][0][i].w > 0 && rects[rect_idx][0][i].h > 0)
           eina_tiler_rect_add(tiler1, &rects[rect_idx][0][i]);
-        if (rects[rect_idx][1][i].w > 0 && rects[rect_idx][1][i].w > 0)
+        if (rects[rect_idx][1][i].w > 0 && rects[rect_idx][1][i].h > 0)
           eina_tiler_rect_add(tiler2, &rects[rect_idx][1][i]);
      }
 

-- 


Reply via email to