diff options
author | Viktor Szakats <vszakats@users.noreply.github.com> | 2017-03-29 23:54:40 +0000 |
---|---|---|
committer | Viktor Szakats <vszakats@users.noreply.github.com> | 2017-03-29 23:54:40 +0000 |
commit | 8c50acb9d2522d4a2a80a929081e9f83af0bec90 (patch) | |
tree | 5dcc5694952305cf209f97c9cfc1b476c5f7f475 /pngrtran.c | |
parent | 92fcd25e9d1c37ece7eb9ba58bca2e69cc3a7582 (diff) | |
download | libpng-8c50acb9d2522d4a2a80a929081e9f83af0bec90.tar.gz |
silence clang -Wcomma warnings
Diffstat (limited to 'pngrtran.c')
-rw-r--r-- | pngrtran.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pngrtran.c b/pngrtran.c index 16c1ed608..e87eaf391 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -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; |