diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-09-30 17:19:12 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-09-30 17:19:12 -0500 |
commit | 1b363fa6b0871de32d37b8230bbd6cf694bed708 (patch) | |
tree | d34fb27bb6a5c00b550bd8fa0d73aadaa6e19ed0 /pngread.c | |
parent | fa244212161bbdcfc26dc3c1019553b06f5ccf10 (diff) | |
download | libpng-1b363fa6b0871de32d37b8230bbd6cf694bed708.tar.gz |
[libpng16] Quieted 116 (out of 288) -Wconversion compiler warnings by changing
flag definitions in pngpriv.h from 0xnnnn to 0xnnnnU and trivial changes
in png.c, pngread.c, and pngwutil.c.
Diffstat (limited to 'pngread.c')
-rw-r--r-- | pngread.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1968,7 +1968,7 @@ make_gray_file_colormap(png_image_read_control *display) for (i=0; i<256; ++i) png_create_colormap_entry(display, i, i, i, i, 255, P_FILE); - return i; + return (int)i; } static int @@ -1979,7 +1979,7 @@ make_gray_colormap(png_image_read_control *display) for (i=0; i<256; ++i) png_create_colormap_entry(display, i, i, i, i, 255, P_sRGB); - return i; + return (int)i; } #define PNG_GRAY_COLORMAP_ENTRIES 256 @@ -2033,7 +2033,7 @@ make_ga_colormap(png_image_read_control *display) P_sRGB); } - return i; + return (int)i; } #define PNG_GA_COLORMAP_ENTRIES 256 @@ -2058,7 +2058,7 @@ make_rgb_colormap(png_image_read_control *display) } } - return i; + return (int)i; } #define PNG_RGB_COLORMAP_ENTRIES 216 |