From 1d0f24149b13b99ffd25e45cf75d60f72ac04795 Mon Sep 17 00:00:00 2001 From: "GMT 2000 Adam D. Moss" Date: Wed, 8 Mar 2000 12:51:00 +0000 Subject: [PATCH] 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 * 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. --- ChangeLog | 7 +++++++ plug-ins/common/xbm.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 236e892942..d095193f80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Wed Mar 8 12:40:53 GMT 2000 Adam D. Moss + + * 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 * app/disp_callbacks.c: show GIMP_BAD_CURSOR if we have no layers. diff --git a/plug-ins/common/xbm.c b/plug-ins/common/xbm.c index 5ed35accab..d8e424aff8 100644 --- a/plug-ins/common/xbm.c +++ b/plug-ins/common/xbm.c @@ -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 ();