From: Dale Weiler Date: Sat, 15 Jun 2013 09:50:02 +0000 (+0000) Subject: Fix bug X-Git-Tag: v0.3.0~127 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b9cf1f12622879542a0ea61c77f68242ed247717;p=xonotic%2Fgmqcc.git Fix bug --- diff --git a/parser.c b/parser.c index 2f88674..2efeafd 100644 --- a/parser.c +++ b/parser.c @@ -1041,18 +1041,18 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy) * whole process ends up becoming: * (LHS | RHS) & (-1 - (LHS & RHS)) */ - #define TRY_TYPE(I) \ - if (exprs[0]->vtype != TYPE_FLOAT) { \ - ast_type_to_string(exprs[0], ty1, sizeof(ty1)); \ - compile_error ( \ - ast_ctx(exprs[(I)]), \ - "invalid type for bit-xor in %s: %s", \ - ty1, \ - ((I) == 0) \ - ? "left-hand-side of expression" \ - : "right-hand-side of expression" \ - ); \ - return false; \ + #define TRY_TYPE(I) \ + if (exprs[(I)]->vtype != TYPE_FLOAT) { \ + ast_type_to_string(exprs[(I)], ty1, sizeof(ty1)); \ + compile_error ( \ + ast_ctx(exprs[(I)]), \ + "invalid type for bit-xor in %s: %s", \ + ty1, \ + ((I) == 0) \ + ? "left-hand-side of expression" \ + : "right-hand-side of expression" \ + ); \ + return false; \ } TRY_TYPE(0) TRY_TYPE(1)