Added the any tag fix for functions returning any:

This commit is contained in:
Steve Dudenhoeffer 2007-05-22 01:29:18 +00:00
parent 079606c143
commit 1129f09660

View File

@ -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
*/