From 229e4e0a48f9293a3ee492a5401be1f60d50cf57 Mon Sep 17 00:00:00 2001 From: kvigor Date: Mon, 5 Feb 2001 19:08:11 +0000 Subject: [PATCH] Check all params to varagrs functions. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@583 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCast.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SDCCast.c b/src/SDCCast.c index c69f5bb3..85d6649c 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -593,7 +593,7 @@ int processParms (ast *func, value *defParm, if (!defParm && actParm && func->hasVargs ) { ast *newType = NULL; - + if (IS_CAST_OP(actParm) || (IS_AST_LIT_VALUE(actParm) && actParm->values.literalFromCast)) { @@ -631,6 +631,11 @@ int processParms (ast *func, value *defParm, actParm->right= parmCopy; decorateType(actParm); } + else if ( actParm->type == EX_OP && actParm->opval.op == PARAM) + { + return (processParms (func,NULL,actParm->left,parmNumber) || + processParms (func,NULL,actParm->right,parmNumber) ); + } return 0; } -- 2.30.2