Fix that typecast

This commit is contained in:
Dale Weiler 2013-07-31 19:36:09 +00:00
parent 10b75fd8b9
commit 24fc2e5146

2
ast.c
View file

@ -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) {