From 613f37348bc06f13a23ac93dec3068a50baf2250 Mon Sep 17 00:00:00 2001 From: johanknol Date: Tue, 30 Oct 2001 11:00:30 +0000 Subject: [PATCH] fixed bug #475821 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1464 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCast.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.2