From d874d85ec0a0047f2e06c1fe571604b6ea34a9cb Mon Sep 17 00:00:00 2001 From: Nicolas Robidoux Date: Tue, 31 Mar 2009 15:01:48 +0000 Subject: [PATCH] cosmetic --- libsrc/resample/snohalo1.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libsrc/resample/snohalo1.cpp b/libsrc/resample/snohalo1.cpp index b9d7d68e..dc0ce768 100644 --- a/libsrc/resample/snohalo1.cpp +++ b/libsrc/resample/snohalo1.cpp @@ -534,11 +534,17 @@ vips_interpolate_snohalo1_interpolate( VipsInterpolate* restrict interpolate, const PEL* restrict p = (PEL *) IM_REGION_ADDR( in, ix, iy ); /* - * Restrict blur parameter to [0,1]: + * Clamp blur parameter to [0,1]: */ - const double actual_blur = snohalo1->blur; + const double requested_blur = snohalo1->blur; const double blur = - ( actual_blur >= 0. ? ( actual_blur <= 1. ? actual_blur : 1. ) : 0. ); + ( + requested_blur >= 0. + ? + ( requested_blur <= 1. ? requested_blur : 1. ) + : + 0. + ); /* * Double bands for complex images: