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++;