From: Dale Weiler Date: Fri, 29 Nov 2013 18:50:06 +0000 (-0500) Subject: Simplify X-Git-Tag: xonotic-v0.8.0~43 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9b92cb08977bfd4fd177b544d746feb307f5ed4e;p=xonotic%2Fgmqcc.git Simplify --- diff --git a/fold.c b/fold.c index 84b01c7..3d3041d 100644 --- a/fold.c +++ b/fold.c @@ -609,11 +609,11 @@ static GMQCC_INLINE ast_expression *fold_op_cmp(fold_t *fold, ast_value *a, ast_ if (isfloat(a) && isfloat(b)) { float la = fold_immvalue_float(a); float lb = fold_immvalue_float(b); - return (ast_expression*)fold->imm_float[!!(ne ? la != lb : la == lb)]; + return (ast_expression*)fold->imm_float[!(ne ? la == lb : la != lb)]; } if (isvector(a) && isvector(b)) { vec3_t la = fold_immvalue_vector(a); vec3_t lb = fold_immvalue_vector(b); - return (ast_expression*)fold->imm_float[!!(ne ? vec3_cmp(la, lb) : !vec3_cmp(la, lb))]; + return (ast_expression*)fold->imm_float[!(ne ? vec3_cmp(la, lb) : !vec3_cmp(la, lb))]; } } return NULL;