From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 17:56:22 +0000 (+0100) Subject: Allow regular AND used on non-float types X-Git-Tag: 0.1.9~252 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=63d89f9f5ae2287f4c52c7da0b511fdb42ad3c2a;p=xonotic%2Fgmqcc.git Allow regular AND used on non-float types --- diff --git a/parser.c b/parser.c index 5cbdb16..f53f603 100644 --- a/parser.c +++ b/parser.c @@ -808,6 +808,7 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy) generated_op += 1; /* INSTR_OR */ case opid2('&','&'): generated_op += INSTR_AND; +#if 0 if (NotSameType(TYPE_FLOAT)) { parseerror(parser, "invalid types used in expression: cannot perform logical operations between types %s and %s", type_name[exprs[0]->expression.vtype], @@ -816,6 +817,7 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy) parseerror(parser, "TODO: optional early out"); return false; } +#endif if (opts_standard == COMPILER_GMQCC) con_out("TODO: early out logic\n"); if (CanConstFold(exprs[0], exprs[1]))