[nautilus/wip/oholy/ci-style-check: 14/22] eel: Add redundant parentheses to prevent changes by uncrustify



commit b477a7026c73e2105afd26dc32857d5832131954
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Feb 13 14:06:46 2020 +0100

    eel: Add redundant parentheses to prevent changes by uncrustify
    
    Uncrustify changes "(*pixsrc++ * *pixdest)" to "(*pixsrc++ **pixdest)"
    which is unwanted. Let's add redundant parentheses around "*pixdest" to
    prevent these unwanted changes.

 eel/eel-graphic-effects.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/eel/eel-graphic-effects.c b/eel/eel-graphic-effects.c
index 1a57bc768..06af09178 100644
--- a/eel/eel-graphic-effects.c
+++ b/eel/eel-graphic-effects.c
@@ -149,11 +149,11 @@ eel_create_colorized_pixbuf (GdkPixbuf *src,
         pixsrc = original_pixels + i * src_row_stride;
         for (j = 0; j < width; j++)
         {
-            *pixdest = (*pixsrc++ * *pixdest) >> 8;
+            *pixdest = ((*pixsrc++) * (*pixdest)) >> 8;
             pixdest++;
-            *pixdest = (*pixsrc++ * *pixdest) >> 8;
+            *pixdest = ((*pixsrc++) * (*pixdest)) >> 8;
             pixdest++;
-            *pixdest = (*pixsrc++ * *pixdest) >> 8;
+            *pixdest = ((*pixsrc++) * (*pixdest)) >> 8;
             pixdest++;
             if (has_alpha)
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]