tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=45707a7bb600c921a8d08e5943e65954ce44b26c

commit 45707a7bb600c921a8d08e5943e65954ce44b26c
Author: Tom Hacohen <t...@stosb.com>
Date:   Tue Aug 30 13:39:37 2016 +0100

    Evas engine drm: Fix style (and thus compilation warning).
    
    Double parenthesis in ifs, such as "if ((x = 5))" should only be used
    iff using assignment inside of conditions (like the example above). This
    explicitly conveys the intention to both the compiler and other
    programmers and essentially eliminates the class of bugs that result
    from accidental assignment when a comparison was intended and vise-versa
    in conditions.
---
 src/modules/evas/engines/drm/evas_outbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/drm/evas_outbuf.c 
b/src/modules/evas/engines/drm/evas_outbuf.c
index 3ab2a54..e26fea7 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -445,7 +445,7 @@ _outbuf_update_region_new(Outbuf *ob, int x, int y, int w, 
int h, int *cx, int *
 
    RECTS_CLIP_TO_RECT(x, y, w, h, 0, 0, ob->w, ob->h);
 
-   if ((ob->rotation == 0))// && (ob->depth == 32))
+   if (ob->rotation == 0) // && (ob->depth == 32))
      {
         Eina_Rectangle *rect;
 

-- 


Reply via email to