]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
don't just store a 'bool constant' in the ast/ir, store the complete qualifier: ...
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index 22081b5c5e0568dbf251213a7c9c5c464d894f6b..c63052cdd39cece423db71911b024bc54080dff6 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -322,7 +322,7 @@ ast_value* ast_value_new(lex_ctx ctx, const char *name, int t)
     self->name = name ? util_strdup(name) : NULL;
     self->expression.vtype = t;
     self->expression.next  = NULL;
-    self->constant = false;
+    self->cvq      = CV_NONE;
     self->hasvalue = false;
     self->uses    = 0;
     memset(&self->constval, 0, sizeof(self->constval));