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

when accessing members of tc_byte_array, cast them to guint8.

2006-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/siod/sliba.c (aref1): when accessing
members
	of tc_byte_array, cast them to guint8.
parent 6e207c09
2006-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/siod/sliba.c (aref1): when accessing members
of tc_byte_array, cast them to guint8.
2006-08-16 Michael Schumacher <schumaml@cvs.gnome.org> 2006-08-16 Michael Schumacher <schumaml@cvs.gnome.org>
* libgimpcolor/gimpcolor.def * libgimpcolor/gimpcolor.def
...@@ -6,7 +11,7 @@ ...@@ -6,7 +11,7 @@
2006-08-16 Michael Schumacher <schumaml@cvs.gnome.org> 2006-08-16 Michael Schumacher <schumaml@cvs.gnome.org>
* app/Makefile.am: added $(SYMPREFIX) to the -u flags * app/Makefile.am: added $(SYMPREFIX) to the -u flags
2006-08-16 Sven Neumann <sven@gimp.org> 2006-08-16 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpmodule.c: added menu_register method. * plug-ins/pygimp/gimpmodule.c: added menu_register method.
......
...@@ -320,7 +320,7 @@ aref1 (LISP a, LISP i) ...@@ -320,7 +320,7 @@ aref1 (LISP a, LISP i)
case tc_byte_array: case tc_byte_array:
if (k >= a->storage_as.string.dim) if (k >= a->storage_as.string.dim)
my_err ("index too large", i); my_err ("index too large", i);
return (flocons ((double) a->storage_as.string.data[k])); return (flocons ((guint8) a->storage_as.string.data[k]));
case tc_double_array: case tc_double_array:
if (k >= a->storage_as.double_array.dim) if (k >= a->storage_as.double_array.dim)
my_err ("index too large", i); my_err ("index too large", i);
......
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