mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 17:11:32 +00:00
Fix bug
This commit is contained in:
parent
a8fddbb7d3
commit
b9cf1f1262
1 changed files with 12 additions and 12 deletions
24
parser.c
24
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)
|
||||
|
|
Loading…
Reference in a new issue