summaryrefslogtreecommitdiff
path: root/pngread.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-09-30 17:19:12 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-09-30 17:19:12 -0500
commit1b363fa6b0871de32d37b8230bbd6cf694bed708 (patch)
treed34fb27bb6a5c00b550bd8fa0d73aadaa6e19ed0 /pngread.c
parentfa244212161bbdcfc26dc3c1019553b06f5ccf10 (diff)
downloadlibpng-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pngread.c b/pngread.c
index b457fd027..a5374e5b8 100644
--- a/pngread.c
+++ b/pngread.c
@@ -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