mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
bit-and const-fold should use bitand not bitor
This commit is contained in:
parent
c0ddb0908c
commit
475cb97404
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -616,7 +616,7 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy)
|
|||
if (CanConstFold(exprs[0], exprs[1]))
|
||||
out = (ast_expression*)parser_const_float(parser,
|
||||
(op->id == opid1('|') ? (float)( ((qcint)ConstF(0)) | ((qcint)ConstF(1)) ) :
|
||||
(float)( ((qcint)ConstF(0)) | ((qcint)ConstF(1)) ) ));
|
||||
(float)( ((qcint)ConstF(0)) & ((qcint)ConstF(1)) ) ));
|
||||
else
|
||||
out = (ast_expression*)ast_binary_new(ctx,
|
||||
(op->id == opid1('|') ? INSTR_BITOR : INSTR_BITAND),
|
||||
|
|
Loading…
Reference in a new issue