summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2020-02-13 14:06:46 +0100
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2020-04-05 16:22:26 +0000
commitb477a7026c73e2105afd26dc32857d5832131954 (patch)
tree51790a546cfd9c0e131e3a24f86fdd0279ae6908
parente66f540052804fcf40f0f0cf884ef229d3ae6185 (diff)
downloadnautilus-b477a7026c73e2105afd26dc32857d5832131954.tar.gz
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.
-rw-r--r--eel/eel-graphic-effects.c6
1 files 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)
{