Merge branch 'master' of github.com:libvips/libvips

This commit is contained in:
John Cupitt 2020-07-23 15:42:04 +01:00
commit 9a88b25aaa
2 changed files with 2 additions and 2 deletions

View File

@ -544,9 +544,9 @@ scanline_read_old( VipsSbuf *sbuf, COLR *scanline, int width )
if( scanline[0][RED] == 1 &&
scanline[0][GRN] == 1 &&
scanline[0][BLU] == 1 ) {
int i;
guint i;
for( i = scanline[0][EXP] << rshift;
for( i = ((guint32) scanline[0][EXP] << rshift);
i > 0 && width > 0; i-- ) {
copycolr( scanline[0], scanline[-1] );
scanline += 1;