]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
add codegen_output_type to ast_binary_codegen
authorWolfgang Bumiller <blub@speed.at>
Mon, 31 Dec 2012 12:20:08 +0000 (13:20 +0100)
committerWolfgang Bumiller <blub@speed.at>
Mon, 31 Dec 2012 12:20:08 +0000 (13:20 +0100)
ast.c

diff --git a/ast.c b/ast.c
index 2a1446c739933813ebb4d96be94ff122b0bab6a1..50b852ae22a3b6bbbf86bb87685f279266bf0436 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1846,6 +1846,7 @@ bool ast_binary_codegen(ast_binary *self, ast_function *func, bool lvalue, ir_va
         }
 
         self->expression.outr = *out;
         }
 
         self->expression.outr = *out;
+        codegen_output_type(self, *out);
         return true;
     }
 
         return true;
     }
 
@@ -1862,6 +1863,7 @@ bool ast_binary_codegen(ast_binary *self, ast_function *func, bool lvalue, ir_va
     if (!*out)
         return false;
     self->expression.outr = *out;
     if (!*out)
         return false;
     self->expression.outr = *out;
+    codegen_output_type(self, *out);
 
     return true;
 }
 
     return true;
 }