Type of written array should be unsigned, as that's the type of data we're

Wed Mar  8 12:40:53 GMT 2000  Adam D. Moss <adam@gimp.org>

        * plug-ins/common/xbm.c: Type of written array should
        be unsigned, as that's the type of data we're initializing
        it with.  Cast back to signed for passing to XCreateBitmapFromData()
        etc.
This commit is contained in:
GMT 2000 Adam D. Moss
2000-03-08 12:51:00 +00:00
committed by Adam D. Moss
parent 2124d1fb7f
commit 1d0f24149b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
Wed Mar 8 12:40:53 GMT 2000 Adam D. Moss <adam@gimp.org>
* plug-ins/common/xbm.c: Type of written array should
be unsigned, as that's the type of data we're initializing
it with. Cast back to signed for passing to XCreateBitmapFromData()
etc.
2000-03-07 Michael Natterer <mitch@gimp.org>
* app/disp_callbacks.c: show GIMP_BAD_CURSOR if we have no layers.

View File

@ -1024,7 +1024,7 @@ save_image (gchar *filename,
}
fprintf (fp, "static %s %s_bits[] = {\n ",
xsvals.x10_format ? "short" : "char", prefix);
xsvals.x10_format ? "unsigned short" : "unsigned char", prefix);
/* Allocate a new set of pixels. */
tileheight = gimp_tile_height ();