[gegl] sampler-cubic: no omitted { } for one line if



commit 22e6b1f71c70fccd10685386233a1f8f009470d4
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Fri Nov 23 20:15:35 2012 -0500

    sampler-cubic: no omitted { } for one line if

 gegl/buffer/gegl-sampler-cubic.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-cubic.c b/gegl/buffer/gegl-sampler-cubic.c
index e8d84f2..20d58b2 100644
--- a/gegl/buffer/gegl-sampler-cubic.c
+++ b/gegl/buffer/gegl-sampler-cubic.c
@@ -275,16 +275,14 @@ cubicKernel (const gfloat  x,
   const gfloat x2 = x*x;
   const gfloat ax = ( x<(gfloat) 0. ? -x : x );
 
-  if (x2 <= (gfloat) 1.)
-    return ( (gfloat) ((12-9*b-6*c)/6) * ax +
-	     (gfloat) ((-18+12*b+6*c)/6) ) * x2 +
-           (gfloat) ((6-2*b)/6);
+  if (x2 <= (gfloat) 1.) return ( (gfloat) ((12-9*b-6*c)/6) * ax +
+				  (gfloat) ((-18+12*b+6*c)/6) ) * x2 +
+			        (gfloat) ((6-2*b)/6);
   
-  if (x2 < (gfloat) 4.)  
-    return ( (gfloat) ((-b-6*c)/6) * ax +
-	     (gfloat) ((6*b+30*c)/6) ) * x2 +
-           (gfloat) ((-12*b-48*c)/6) * ax +
-           (gfloat) ((8*b+24*c)/6);
+  if (x2 < (gfloat) 4.) return ( (gfloat) ((-b-6*c)/6) * ax +
+				 (gfloat) ((6*b+30*c)/6) ) * x2 +
+                               (gfloat) ((-12*b-48*c)/6) * ax +
+                               (gfloat) ((8*b+24*c)/6);
 
   return (gfloat) 0.;
 }



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