]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
ast_istype should add the TYPE_ prefix
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 09:36:15 +0000 (11:36 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 09:36:15 +0000 (11:36 +0200)
ast.h

diff --git a/ast.h b/ast.h
index 5a09b434764598f282d7ecf10f8981a8b65d2eb7..29f3061d70d56632cf944ac2a8ed5052dba272ee 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -63,7 +63,7 @@ enum {
     TYPE_ast_member
 };
 
-#define ast_istype(x, t) ( ((ast_node_common*)x)->nodetype == (t) )
+#define ast_istype(x, t) ( ((ast_node_common*)x)->nodetype == (TYPE_##t) )
 
 /* Node interface with common components
  */