]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
Merge branch 'divVerent/ftypeless-stores' of git://git.xonotic.org/xonotic/gmqcc...
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index dd98a83b0f9602931c32d2a3d8e3134f8d4faa79..32ab1a2781bb60dab72082721eed7ef0408c6019 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -2534,9 +2534,9 @@ bool ast_ifthen_codegen(ast_ifthen *self, ast_function *func, bool lvalue, ir_va
     cond = func->curblock;
 
     /* try constant folding away the if */
-    if ((fold = fold_cond((ast_value*)condval, func, self)) != -1)
+    if ((fold = fold_cond(condval, func, self)) != -1)
         return fold;
-    
+
     if (self->on_true) {
         /* create on-true block */
         ontrue = ir_function_create_block(ast_ctx(self), func->ir_func, ast_function_label(func, "ontrue"));