diff --git a/libvips/resample/reduceh.cpp b/libvips/resample/reduceh.cpp index 73ddab38..07ddff32 100644 --- a/libvips/resample/reduceh.cpp +++ b/libvips/resample/reduceh.cpp @@ -498,7 +498,7 @@ vips_reduceh_build( VipsObject *object ) VIPS_INTERPOLATE_SCALE; #ifdef DEBUG - printf( "vips_reduceh_build: mask %d\n ", x ); + printf( "vips_reduceh_build: mask %d\n ", x ); for( int i = 0; i < reduceh->n_point; i++ ) printf( "%d ", reduceh->matrixi[x][i] ); printf( "\n" ); diff --git a/libvips/resample/reducev.cpp b/libvips/resample/reducev.cpp index a704f739..7f876433 100644 --- a/libvips/resample/reducev.cpp +++ b/libvips/resample/reducev.cpp @@ -553,8 +553,8 @@ vips_reducev_gen( VipsRegion *out_region, void *vseq, for( int y = 0; y < r->height; y ++ ) { VipsPel *q = VIPS_REGION_ADDR( out_region, r->left, r->top + y ); - const int py = (int) Y; - VipsPel *p = VIPS_REGION_ADDR( ir, r->left, py ); + const int py = (int) Y; + VipsPel *p = VIPS_REGION_ADDR( ir, r->left, py ); const int sy = Y * VIPS_TRANSFORM_SCALE * 2; const int siy = sy & (VIPS_TRANSFORM_SCALE * 2 - 1); const int ty = (siy + 1) >> 1; @@ -678,7 +678,7 @@ vips_reducev_vector_gen( VipsRegion *out_region, void *vseq, for( int y = 0; y < r->height; y ++ ) { VipsPel *q = VIPS_REGION_ADDR( out_region, r->left, r->top + y ); - const int py = (int) Y; + const int py = (int) Y; const int sy = Y * VIPS_TRANSFORM_SCALE * 2; const int siy = sy & (VIPS_TRANSFORM_SCALE * 2 - 1); const int ty = (siy + 1) >> 1; @@ -872,7 +872,7 @@ vips_reducev_build( VipsObject *object ) VIPS_INTERPOLATE_SCALE; #ifdef DEBUG - printf( "vips_reducev_build: mask %d\n ", y ); + printf( "vips_reducev_build: mask %d\n ", y ); for( int i = 0; i < reducev->n_point; i++ ) printf( "%d ", reducev->matrixi[y][i] ); printf( "\n" ); diff --git a/libvips/resample/templates.h b/libvips/resample/templates.h index b64737df..d60144ba 100644 --- a/libvips/resample/templates.h +++ b/libvips/resample/templates.h @@ -322,7 +322,7 @@ calculate_coefficients_triangle( double *c, /* Needs to be in sync with vips_reduce_get_points(). */ const int n_points = 2 * rint( shrink ) + 1; - const double half = x + n_points / 2.0 - 1; + const double half = x + n_points / 2.0 - 1; int i; double sum; @@ -360,7 +360,7 @@ calculate_coefficients_cubic( double *c, /* Needs to be in sync with vips_reduce_get_points(). */ const int n_points = 2 * rint( 2 * shrink ) + 1; - const double half = x + n_points / 2.0 - 1; + const double half = x + n_points / 2.0 - 1; int i; double sum; @@ -409,14 +409,14 @@ calculate_coefficients_lanczos( double *c, /* Needs to be in sync with vips_reduce_get_points(). */ const int n_points = 2 * rint( a * shrink ) + 1; - const double half = x + n_points / 2.0 - 1; + const double half = x + n_points / 2.0 - 1; int i; double sum; sum = 0; for( i = 0; i < n_points; i++ ) { - double xp = (i - half) / shrink; + const double xp = (i - half) / shrink; double l;