diff --git a/source/compiler/sc3.c b/source/compiler/sc3.c index 3421f46..bf5b66f 100644 --- a/source/compiler/sc3.c +++ b/source/compiler/sc3.c @@ -2343,6 +2343,8 @@ static int nesting=0; check_userop(NULL,arg[argidx].defvalue_tag,arg[argidx].tags[0],2,NULL,&dummytag); assert(dummytag==arg[argidx].tags[0]); } /* if */ + if (arg[argidx].defvalue_tag!=0) + append_constval(&taglst,arg[argidx].name,arg[argidx].defvalue_tag,0); pushreg(sPRI); /* store the function argument on the stack */ markexpr(sPARM,NULL,0); /* mark the end of a sub-expression */ nest_stkusage++;