From f314cb30eb58afbf26c7b5b5160562cabd2e84b0 Mon Sep 17 00:00:00 2001 From: kvigor Date: Mon, 5 Feb 2001 21:10:33 +0000 Subject: [PATCH] undo Johan's changes for the moment git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@587 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCast.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/SDCCast.c b/src/SDCCast.c index 18a035a1..230be7ec 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -648,14 +648,19 @@ int processParms (ast *func, value *defParm, resolveSymbols(actParm); /* if this is a PARAM node then match left & right */ if ( actParm->type == EX_OP && actParm->opval.op == PARAM) { - return (processParms (func,defParm->next, actParm->right,parmNumber) ); - } else { + return (processParms (func,defParm,actParm->left,parmNumber) || + processParms (func,defParm->next, actParm->right,parmNumber) ); + } +#if 0 + /* Pending discussion with Johan. */ + else { /* if more defined parameters present but no more actual parameters */ if (defParm->next) { werror(E_TOO_FEW_PARMS); return 1; } } +#endif /* the parameter type must be atleast castable */ if (checkType(defParm->type,actParm->ftype) == 0) { -- 2.47.2