mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[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:
parent
ac4942e26b
commit
9b8ddff5b7
2
ANNOUNCE
2
ANNOUNCE
@ -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
|
||||
|
2
CHANGES
2
CHANGES
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user