From f187f1eb8aac9a4e600fa9c6a88b0748bc7cda21 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 8 Dec 2007 17:31:44 +0000 Subject: [PATCH] fixed amb1225 - extremely rare compiler bug could cause crash. unluckily, this suddenly started breaking the linux build, which should now work again --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401781 --- sourcepawn/compiler/sc3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcepawn/compiler/sc3.c b/sourcepawn/compiler/sc3.c index 5ff02707..c9a86974 100644 --- a/sourcepawn/compiler/sc3.c +++ b/sourcepawn/compiler/sc3.c @@ -2365,7 +2365,7 @@ static int nesting=0; */ } else { arglist[argpos]=ARG_DONE; /* flag argument as "present" */ - if (arg[argidx].numtags==1) /* set the expected tag, if any */ + if (arg[argidx].ident!=0 && arg[argidx].numtags==1) /* set the expected tag, if any */ lval.cmptag=arg[argidx].tags[0]; lvalue=hier14(&lval); assert(sc_status==statFIRST || arg[argidx].tags!=NULL);