[gimp/gimp-2-10] Issue #4338 Plug-in file-header exporting to format C header wrong output.
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] Issue #4338 Plug-in file-header exporting to format C header wrong output.
- Date: Sun, 29 Dec 2019 22:02:51 +0000 (UTC)
commit 3f76d7782a10185ce60178f5dbf6e288da46bdfa
Author: lillolollo <4179-lillolollo users noreply gitlab gnome org>
Date: Mon Dec 9 06:03:23 2019 +0000
Issue #4338 Plug-in file-header exporting to format C header wrong output.
plug-ins/common/file-header.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-header.c b/plug-ins/common/file-header.c
index 6b2b4640f5..50e5e378e7 100644
--- a/plug-ins/common/file-header.c
+++ b/plug-ins/common/file-header.c
@@ -312,7 +312,7 @@ save_image (GFile *file,
cmap = gimp_image_get_colormap (image_ID, &colors);
if (! print (output, error,
- "static char header_data_cmap[256][3] = {") ||
+ "static unsigned char header_data_cmap[256][3] = {") ||
! print (output, error,
"\n\t{%3d,%3d,%3d}",
(gint) cmap[0], (gint) cmap[1], (gint) cmap[2]))
@@ -346,7 +346,7 @@ save_image (GFile *file,
g_free (cmap);
/* save image */
- if (! print (output, error, "static char header_data[] = {\n\t"))
+ if (! print (output, error, "static unsigned char header_data[] = {\n\t"))
goto fail;
data = g_new (guchar, width * 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]