[libpng16] Changed 0xnnnn constants to 0xnnnnUL.

This commit is contained in:
Glenn Randers-Pehrson
2015-08-16 22:49:58 -05:00
parent 8b83ff3704
commit 8ba4b13c55
10 changed files with 76 additions and 60 deletions

View File

@@ -3642,7 +3642,7 @@ png_do_compose(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8)
+ *(sp + 3));
if (a == (png_uint_16)0xffff)
if (a == (png_uint_16)0xffffL)
{
png_uint_16 v;
@@ -3691,7 +3691,7 @@ png_do_compose(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
*(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff);
}
else if (a < 0xffff)
else if (a < 0xffffL)
{
png_uint_16 g, v;
@@ -3795,7 +3795,7 @@ png_do_compose(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6))
<< 8) + (png_uint_16)(*(sp + 7)));
if (a == (png_uint_16)0xffff)
if (a == (png_uint_16)0xffffL)
{
png_uint_16 v;
@@ -3881,7 +3881,7 @@ png_do_compose(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
*(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
}
else if (a < 0xffff)
else if (a < 0xffffL)
{
png_uint_16 v;