[gimp] app: clarify operator precedence in an expression with % and ?



commit cd0143c350f1df57a4f4797fe5040707d860955d
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 21 10:40:44 2012 +0200

    app: clarify operator precedence in an expression with % and ?

 app/core/gimpbrushgenerated.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpbrushgenerated.c b/app/core/gimpbrushgenerated.c
index b45b390..3fbfa9d 100644
--- a/app/core/gimpbrushgenerated.c
+++ b/app/core/gimpbrushgenerated.c
@@ -497,7 +497,7 @@ gimp_brush_generated_calc (GimpBrushGenerated      *brush,
   ss = sin (- 2 * G_PI / spikes);
 
   /* for an even number of spikes compute one half and mirror it */
-  for (y = (spikes % 2 ? -half_height : 0); y <= half_height; y++)
+  for (y = ((spikes % 2) ? -half_height : 0); y <= half_height; y++)
     {
       for (x = -half_width; x <= half_width; x++)
         {



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