aboutsummaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-01-07 20:35:36 +0100
committertomsmeding <tom.smeding@gmail.com>2018-01-07 20:35:36 +0100
commit20d898496b7371872bfd128a895d39465f13c970 (patch)
tree44ab01e31b408a1ff96f454445a6886b41c0f681 /node.c
parent6eb88017ce9a2e91d90634cbb77097dd821b8626 (diff)
Now with type checking
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/node.c b/node.c
index f34061c..3e7d945 100644
--- a/node.c
+++ b/node.c
@@ -12,6 +12,8 @@ struct node* node_make_0(enum node_type type) {
node->rtype = NULL;
node->name = NULL;
node->value = 0;
+ node->oper = -1;
+ node->valuetype = NULL;
return node;
}