fixed amb1225 - extremely rare compiler bug could cause crash. unluckily, this suddenly started breaking the linux build, which should now work again
authorDavid Anderson <dvander@alliedmods.net>
Sat Dec 08 17:31:44 2007 +0000 (2007-12-08)
changeset 17756eb390705976
parent 1774 b94704497073
child 1776 a1e26c210ad9
fixed amb1225 - extremely rare compiler bug could cause crash. unluckily, this suddenly started breaking the linux build, which should now work again
sourcepawn/compiler/sc3.c
     1.1 --- a/sourcepawn/compiler/sc3.c	Fri Dec 07 21:43:28 2007 +0000
     1.2 +++ b/sourcepawn/compiler/sc3.c	Sat Dec 08 17:31:44 2007 +0000
     1.3 @@ -2365,7 +2365,7 @@
     1.4           */
     1.5        } else {
     1.6          arglist[argpos]=ARG_DONE; /* flag argument as "present" */
     1.7 -        if (arg[argidx].numtags==1)     /* set the expected tag, if any */
     1.8 +        if (arg[argidx].ident!=0 && arg[argidx].numtags==1)     /* set the expected tag, if any */
     1.9            lval.cmptag=arg[argidx].tags[0];
    1.10          lvalue=hier14(&lval);
    1.11          assert(sc_status==statFIRST || arg[argidx].tags!=NULL);