From 76d2e8cfc4ff7b9653afe0f60e7392ef6bcfe28d Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 25 Oct 2013 21:12:28 -0500 Subject: [PATCH] Set node type when nil-ing an id node. - Nodes can't stay as type AST_ExprID if they don't also have the operation PEX_ID. --- src/zscript/zcc_compile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zscript/zcc_compile.cpp b/src/zscript/zcc_compile.cpp index 86f2d3ea2..385db01e3 100644 --- a/src/zscript/zcc_compile.cpp +++ b/src/zscript/zcc_compile.cpp @@ -352,6 +352,7 @@ ZCC_Expression *ZCCCompiler::IdentifyIdentifier(ZCC_ExprID *idnode) // Identifier didn't refer to anything good, so type error it. idnode->Type = TypeError; idnode->Operation = PEX_Nil; + idnode->NodeType = AST_Expression; return idnode; }