[master] Added a typecast in pngrutil.c to stifle compiler warning

in the calculation of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
This commit is contained in:
Glenn Randers-Pehrson 2010-05-03 15:19:11 -05:00
parent ac4942e26b
commit 9b8ddff5b7
3 changed files with 6 additions and 1 deletions

View File

@ -62,6 +62,8 @@ version 1.4.2rc05 [April 29, 2010]
version 1.4.2rc06 [May 3, 2010]
Moved declarations of umsg[] inside the proper #ifdef blocks in pngrutil.c
Added a typecast in pngrutil.c to stifle compiler warning in the calculation
of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
Send comments/corrections/commendations to glennrp at users.sourceforge.net
or to png-mng-implement at lists.sf.net (subscription required; visit

View File

@ -2573,6 +2573,8 @@ version 1.4.2rc05 [April 29, 2010]
version 1.4.2rc06 [May 3, 2010]
Moved declarations of umsg[] inside the proper #ifdef blocks in pngrutil.c
Added a typecast in pngrutil.c to stifle compiler warning in the calculation
of the png_ptr->rowbuf pointer into png_ptr->big_row_buf.
Send comments/corrections/commendations to glennrp at users.sourceforge.net
or to png-mng-implement at lists.sf.net (subscription required; visit

View File

@ -3326,7 +3326,8 @@ defined(PNG_USER_TRANSFORM_PTR_SUPPORTED)
* of padding before and after row_buf.
*/
png_ptr->row_buf = png_ptr->big_row_buf + 32
- (((png_alloc_size_t)&(png_ptr->big_row_buf[0]) + 15) % 16);
- (((png_alloc_size_t)&(png_ptr->big_row_buf[0])
+ (png_alloc_size_t)15) % 16);
png_ptr->old_big_row_buf_size = row_bytes + 48;
#else
/* Use 32 bytes of padding before and 16 bytes after row_buf. */