From 55f28fdaaac53f8a78aa8ecc59402eff556252be Mon Sep 17 00:00:00 2001
From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org>
Date: Tue, 26 Sep 2000 12:22:11 +0200
Subject: [PATCH] type bugs in methods fixed (create, map)

Rev: src/modules/Image/colortable.c:1.99
---
 src/modules/Image/colortable.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/modules/Image/colortable.c b/src/modules/Image/colortable.c
index 5c3cf4525f..d812e97a92 100644
--- a/src/modules/Image/colortable.c
+++ b/src/modules/Image/colortable.c
@@ -1,11 +1,11 @@
 #include "global.h"
 
-/* $Id: colortable.c,v 1.98 2000/09/10 01:23:58 per Exp $ */
+/* $Id: colortable.c,v 1.99 2000/09/26 10:22:11 mirar Exp $ */
 
 /*
 **! module Image
 **! note
-**!	$Id: colortable.c,v 1.98 2000/09/10 01:23:58 per Exp $
+**!	$Id: colortable.c,v 1.99 2000/09/26 10:22:11 mirar Exp $
 **! class Colortable
 **!
 **!	This object keeps colortable information,
@@ -20,7 +20,7 @@
 #undef COLORTABLE_DEBUG
 #undef COLORTABLE_REDUCE_DEBUG
 
-RCSID("$Id: colortable.c,v 1.98 2000/09/10 01:23:58 per Exp $");
+RCSID("$Id: colortable.c,v 1.99 2000/09/26 10:22:11 mirar Exp $");
 
 #include <math.h> /* fabs() */
 
@@ -4482,7 +4482,7 @@ void init_image_colortable(void)
 		"function(array(array(int)|string|object):void)|"
 		"function(object,void|int,mixed ...:void)|"
 		"function(int,int,int,void|int ...:void) */
-   ADD_FUNCTION("create",image_colortable_create,tOr4(tFunc(tVoid,tVoid),tFunc(tArr(tColor),tVoid),tFuncV(tObj tOr(tVoid,tInt),tMix,tVoid),tFuncV(tInt tInt tInt,tOr(tVoid,tInt),tVoid)),0);
+   ADD_FUNCTION("create",image_colortable_create,tOr4(tFunc(tVoid,tVoid),tFunc(tOr(tArr(tColor),tStr),tVoid),tFuncV(tObj tOr(tVoid,tInt),tMix,tVoid),tFuncV(tInt tInt tInt,tOr(tVoid,tInt),tVoid)),0);
 
    ADD_FUNCTION("_sprintf", image_colortable__sprintf, 
                 tFunc(tInt tMapping, tString ), 0 );
@@ -4513,7 +4513,7 @@ void init_image_colortable(void)
 
    /* map image */
    /* function(object:object)|function(string,int,int) */
-#define map_func_type tOr(tFunc(tObj,tObj),tFunc(tString tInt,tInt))
+#define map_func_type tOr(tFunc(tObj,tObj),tFunc(tString tInt tInt,tObj))
    ADD_FUNCTION("map",image_colortable_map,map_func_type,0);
    ADD_FUNCTION("`*",image_colortable_map,map_func_type,0);
    ADD_FUNCTION("``*",image_colortable_map,map_func_type,0);
-- 
GitLab