Skip to content

Commit

Permalink
Try a patch for libvips#1846
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Oct 7, 2020
1 parent 9fbf49c commit 143c815
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libvips/morphology/morph.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ vips_dilate_gen( VipsRegion *or,
seq->ss = 0;
seq->cs = 0;
for( y = 0; y < M->Ysize; y++ )
for( x = 0; x < M->Xsize; x++ )
switch( t[x] ) {
for( x = 0; x < M->Xsize; x++, t++ )
switch( *t ) {
case 255:
soff[seq->ss++] =
VIPS_REGION_ADDR( ir,
Expand Down Expand Up @@ -560,8 +560,8 @@ vips_erode_gen( VipsRegion *or,
seq->ss = 0;
seq->cs = 0;
for( y = 0; y < M->Ysize; y++ )
for( x = 0; x < M->Xsize; x++ )
switch( t[x] ) {
for( x = 0; x < M->Xsize; x++, t++ )
switch( *t ) {
case 255:
soff[seq->ss++] =
VIPS_REGION_ADDR( ir,
Expand Down

0 comments on commit 143c815

Please sign in to comment.