[libpng16] Appended more "UL" to hex constants.

This commit is contained in:
Glenn Randers-Pehrson
2015-08-17 10:56:17 -05:00
parent b9ba8d6a57
commit d8b93c29a7
4 changed files with 36 additions and 33 deletions

View File

@@ -3143,7 +3143,8 @@ png_combine_row(png_const_structrp png_ptr, png_bytep dp, int display)
* cases the result needs replicating, for the 4-bpp case the above
* generates a full 32 bits.
*/
# define MASK_EXPAND(m,d) ((m)*((d)==1?0x01010101:((d)==2?0x00010001:1)))
# define MASK_EXPAND(m,d) \
((m)*((d)==1?0x01010101UL:((d)==2?0x00010001UL:1)))
# define S_MASK(p,d,s) MASK_EXPAND(S_MASKx(p,0,d,s) + S_MASKx(p,1,d,s) +\
S_MASKx(p,2,d,s) + S_MASKx(p,3,d,s) + S_MASKx(p,4,d,s) +\