From 24fc2e5146d7ebb213b2690ed99c8eb61cafd81e Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 31 Jul 2013 19:36:09 +0000 Subject: [PATCH 1/1] Fix that typecast --- ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast.c b/ast.c index dd98a83..bcc2f8e 100644 --- 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) { -- 2.39.2