moved # of params error message back to an actual error

fixed a bug in the peephole optimizer

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40108
This commit is contained in:
David Anderson 2006-10-10 00:39:19 +00:00
parent fb9234eb86
commit 5eec9f6dff
2 changed files with 2 additions and 2 deletions

View File

@ -5391,7 +5391,7 @@ static void doreturn(void)
/* "return <value>" */
if ((rettype & uRETNONE)!=0)
error(78); /* mix "return;" and "return value;" */
ident=doexpr(TRUE,FALSE,TRUE,TRUE,&tag,&sym,TRUE);
ident=doexpr(TRUE,FALSE,TRUE,FALSE,&tag,&sym,TRUE);
needtoken(tTERM);
/* see if this function already has a sub type (an array attached) */
sub=finddepend(curfunc);

View File

@ -2402,7 +2402,7 @@ static int nesting=0;
markexpr(sPARM,NULL,0); /* mark the end of a sub-expression */
nest_stkusage++;
} else {
error(202,argidx); /* argument count mismatch */
error(92,argidx); /* argument count mismatch */
} /* if */
if (arglist[argidx]==ARG_UNHANDLED)
nargs++;