mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Fix g++ build breaks
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
2dfcf65981
commit
7023d871e8
@@ -2021,7 +2021,8 @@ png_write_start_row(png_structrp png_ptr)
|
||||
* filters.
|
||||
*/
|
||||
if ((filters & (PNG_FILTER_AVG | PNG_FILTER_UP | PNG_FILTER_PAETH)) != 0)
|
||||
png_ptr->prev_row = png_calloc(png_ptr, buf_size);
|
||||
png_ptr->prev_row = png_voidcast(png_bytep,
|
||||
png_calloc(png_ptr, buf_size));
|
||||
#endif /* WRITE_FILTER */
|
||||
|
||||
#ifdef PNG_WRITE_INTERLACING_SUPPORTED
|
||||
|
||||
Reference in New Issue
Block a user