[nautilus/wip/oholy/ci-style-check: 22/25] eel: Add redundant parentheses to prevent changes by uncrustify
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/ci-style-check: 22/25] eel: Add redundant parentheses to prevent changes by uncrustify
- Date: Thu, 13 Feb 2020 14:47:25 +0000 (UTC)
commit d3c9487cb0f7e514692dfd813c6503d95f2c14ce
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]