]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix that typecast
authorDale Weiler <killfieldengine@gmail.com>
Wed, 31 Jul 2013 19:36:09 +0000 (19:36 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Wed, 31 Jul 2013 19:36:09 +0000 (19:36 +0000)
ast.c

diff --git a/ast.c b/ast.c
index dd98a83b0f9602931c32d2a3d8e3134f8d4faa79..bcc2f8ef3f4bc4fb3887facfa047a6c6c6fef712 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -2534,7 +2534,7 @@ 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) {