]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
ast_expression now derives from ast_node
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index f348e4b0309bac100b0b15d92444390324f3c802..e721afc1b7a7501f088099b0a1df9a7b4e2970d6 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -141,10 +141,9 @@ typedef bool ast_expression_codegen(ast_expression*,
  * type `expression`, so the ast_ident's codegen would search for
  * variables through the environment (or functions, constants...).
  */
-struct ast_expression {
+struct ast_expression : ast_node {
     ast_expression() {}
 
-    ast_node                node;
     ast_expression_codegen *codegen;
     int                     vtype;
     ast_expression         *next;