aboutsummaryrefslogtreecommitdiff
path: root/semantics.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-06 22:55:36 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-06 22:55:36 +0800
commitbec9fa22a648333c13105e8beb1862157952c6e6 (patch)
tree11c176b20c381e2a327c645f7b0231fc9dc53672 /semantics.c
parenta366436782315f0bffb6b8642396d32a4bc90a2c (diff)
fixed bug in setting opr->def; opt print even more
Diffstat (limited to 'semantics.c')
-rw-r--r--semantics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/semantics.c b/semantics.c
index 30088ca..d8fe289 100644
--- a/semantics.c
+++ b/semantics.c
@@ -273,6 +273,7 @@ CVar_t cvar_create(char *name, CType_t type, CNode *ast) {
cv->loc = 0;
cv->weight = 0;
cv->reload = 0;
+ cv->cnt = 0;
return cv;
}