From a0486eea8c4e18c7dc0278cd2bc72e892944cac4 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Mon, 14 May 2007 19:32:38 +0000 Subject: [PATCH] Fixed amb290 - Some incorrect reporting of tag mismatches with the 'any' tag --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40799 --- sourcepawn/compiler/sc3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sourcepawn/compiler/sc3.c b/sourcepawn/compiler/sc3.c index d4e780c5..9a64175d 100644 --- a/sourcepawn/compiler/sc3.c +++ b/sourcepawn/compiler/sc3.c @@ -322,12 +322,12 @@ SC_FUNC int matchtag_string(int ident, int tag) SC_FUNC int matchtag(int formaltag,int actualtag,int allowcoerce) { - if (formaltag!=actualtag) { + if (formaltag != actualtag) { /* if the formal tag is zero and the actual tag is not "fixed", the actual * tag is "coerced" to zero */ if (!allowcoerce || formaltag!=0 || (actualtag & FIXEDTAG)!=0) { - if (formaltag == pc_anytag) + if (formaltag == pc_anytag || actualtag == pc_anytag) { return TRUE; }