X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ast.c;h=bcc2f8ef3f4bc4fb3887facfa047a6c6c6fef712;hp=dd98a83b0f9602931c32d2a3d8e3134f8d4faa79;hb=24fc2e5146d7ebb213b2690ed99c8eb61cafd81e;hpb=10b75fd8b9ebc7ea6dbfd802dde13af4ec4c2414 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) {