From: Dale Weiler Date: Wed, 31 Jul 2013 19:36:09 +0000 (+0000) Subject: Fix that typecast X-Git-Tag: v0.3.0~39 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=24fc2e5146d7ebb213b2690ed99c8eb61cafd81e;hp=10b75fd8b9ebc7ea6dbfd802dde13af4ec4c2414 Fix that typecast --- 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) {