From 5eec9f6dff8ed25376c308c4db1e5191d00a867b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 10 Oct 2006 00:39:19 +0000 Subject: [PATCH] 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 --- sourcepawn/compiler/sc1.c | 2 +- sourcepawn/compiler/sc3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 189fe7fc..73a5bc8a 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -5391,7 +5391,7 @@ static void doreturn(void) /* "return " */ 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); diff --git a/sourcepawn/compiler/sc3.c b/sourcepawn/compiler/sc3.c index b169df5c..c9b2e467 100644 --- a/sourcepawn/compiler/sc3.c +++ b/sourcepawn/compiler/sc3.c @@ -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++;