]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - test/ast-macros.h
ast_store to take ast_expression on its left, rather than ast_value. Assigning to...
[xonotic/gmqcc.git] / test / ast-macros.h
index c17b753696173db090398d7d78f713a15ecc0e07..ebb3a5bd6b7b09807622a90c8ef9523f0b09e4bb 100644 (file)
@@ -42,7 +42,7 @@ do {                                             \
 } while(0)
 
 #define ASSIGN(op, a, b) \
-(ast_expression*)ast_store_new(ctx, INSTR_##op, (a), (ast_expression*)(b))
+(ast_expression*)ast_store_new(ctx, INSTR_##op, (ast_expression*)(a), (ast_expression*)(b))
 
 #define BIN(op, a, b) \
 (ast_expression*)ast_binary_new(ctx, INSTR_##op, (ast_expression*)(a), (ast_expression*)(b))