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>
* libgimpcolor/gimpcolor.def
......
......@@ -320,7 +320,7 @@ aref1 (LISP a, LISP i)
case tc_byte_array:
if (k >= a->storage_as.string.dim)
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:
if (k >= a->storage_as.double_array.dim)
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