[master] Changes to remove gcc warnings (John Bowler)

This commit is contained in:
Glenn Randers-Pehrson
2010-11-21 14:02:16 -06:00
parent c03a949a0d
commit 2922c07e67
8 changed files with 70 additions and 4 deletions

View File

@@ -195,6 +195,9 @@ png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
*dp = (png_byte)v;
break;
}
default:
break;
}
row_info->bit_depth = (png_byte)bit_depth;
row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);