Commit f56ab4b8 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

fixed signedness warnings.

2005-07-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mng.c (mng_save_image): fixed signedness warnings.
parent 19ea2a9d
2005-07-19 Sven Neumann <sven@gimp.org>
* plug-ins/common/mng.c (mng_save_image): fixed signedness warnings.
2005-07-19 Michael Natterer <mitch@gimp.org>
* app/widgets/Makefile.am
......
......@@ -1129,24 +1129,25 @@ mng_save_image (const gchar *filename,
while (!feof (infile))
{
unsigned char chunksize_chars[4];
unsigned long chunksize;
unsigned char chunkname[5];
guchar *chunkbuffer;
long chunkwidth;
long chunkheight;
char chunkbitdepth;
char chunkcolortype;
char chunkcompression;
char chunkfilter;
char chunkinterlaced;
guchar chunksize_chars[4];
gulong chunksize;
gchar chunkname[5];
guchar *chunkbuffer;
glong chunkwidth;
glong chunkheight;
gchar chunkbitdepth;
gchar chunkcolortype;
gchar chunkcompression;
gchar chunkfilter;
gchar chunkinterlaced;
if (fread (chunksize_chars, 1, 4, infile) != 4)
break;
if (fread (chunkname, 1, 4, infile) != 4)
break;
chunkname[4] = 0;
chunksize = (chunksize_chars[0] << 24) | (chunksize_chars[1] << 16)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment