[hackers] [scc] [cc2] Forces the value of op in constnode() || Roberto E. Vargas Caballero
commit 42eaab3f622a05d33a00df47774bc46377465744
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Sep 15 16:46:50 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Sep 15 16:46:50 2016 +0200
[cc2] Forces the value of op in constnode()
The value was set only in allocated nodes, but in nodes
passed as parameters it was not set.
diff --git a/cc2/code.c b/cc2/code.c
index 68172b5..35c9cf1 100644
--- a/cc2/code.c
+++ b/cc2/code.c
_AT_@ -85,6 +85,7 @@ constnode(Node *np, TUINT n, Type *tp)
{
if (!np)
np = newnode(OCONST);
+ np->op = OCONST;
np->left = NULL;
np->right = NULL;
np->type = *tp;
Received on Thu Sep 15 2016 - 17:06:41 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 15 2016 - 17:12:17 CEST