From: johanknol Date: Tue, 30 Oct 2001 11:00:30 +0000 (+0000) Subject: fixed bug #475821 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=613f37348bc06f13a23ac93dec3068a50baf2250;p=fw%2Fsdcc fixed bug #475821 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1464 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCast.c b/src/SDCCast.c index 38b94995..99e4bef7 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -259,6 +259,9 @@ copyAst (ast * src) dest->level = src->level; dest->funcName = src->funcName; + if (src->ftype) + dest->etype = getSpec (dest->ftype = copyLinkChain (src->ftype)); + /* if this is a leaf */ /* if value */ if (src->type == EX_VALUE) @@ -279,9 +282,6 @@ copyAst (ast * src) /* if this is a node that has special values */ copyAstValues (dest, src); - if (src->ftype) - dest->etype = getSpec (dest->ftype = copyLinkChain (src->ftype)); - dest->trueLabel = copySymbol (src->trueLabel); dest->falseLabel = copySymbol (src->falseLabel); dest->left = copyAst (src->left);