silence clang -Wcomma warnings

This commit is contained in:
Viktor Szakats
2017-03-29 23:54:40 +00:00
parent 92fcd25e9d
commit 8c50acb9d2
5 changed files with 75 additions and 33 deletions

View File

@@ -4601,7 +4601,9 @@ png_do_expand_16(png_row_infop row_info, png_bytep row)
png_byte *sp = row + row_info->rowbytes; /* source, last byte + 1 */
png_byte *dp = sp + row_info->rowbytes; /* destination, end + 1 */
while (dp > sp)
dp[-2] = dp[-1] = *--sp, dp -= 2;
{
dp[-2] = dp[-1] = *--sp; dp -= 2;
}
row_info->rowbytes *= 2;
row_info->bit_depth = 16;