From 1129f09660f3f0cbc84a40ad7686a34a7a1c1ac4 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Tue, 22 May 2007 01:29:18 +0000 Subject: [PATCH] Added the any tag fix for functions returning any: --- compiler/libpc300/sc3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/libpc300/sc3.c b/compiler/libpc300/sc3.c index f563cdb9..56423405 100755 --- a/compiler/libpc300/sc3.c +++ b/compiler/libpc300/sc3.c @@ -284,7 +284,7 @@ static void (*unopers[])(void) = { lneg, neg, user_inc, user_dec }; SC_FUNC int matchtag(int formaltag,int actualtag,int allowcoerce) { - if (formaltag!=actualtag && formaltag!=pc_anytag) { + if (formaltag!=actualtag && formaltag!=pc_anytag && actualtag!=pc_anytag) { /* if the formal tag is zero and the actual tag is not "fixed", the actual * tag is "coerced" to zero */