[qfcc] Use != nil for unary ! for Ruamoko progs

Ruamoko has no explicit ! instruction.
This commit is contained in:
Bill Currie 2022-01-29 18:22:41 +09:00
parent 7e9cf76cfe
commit 501dd7db76
1 changed files with 3 additions and 1 deletions

View File

@ -1951,7 +1951,9 @@ unary_expr (int op, expr_t *e)
case ex_alias:
case ex_address:
case ex_assign:
{
if (options.code.progsversion == PROG_VERSION) {
return binary_expr (EQ, e, new_nil_expr ());
} else {
expr_t *n = new_unary_expr (op, e);
if (options.code.progsversion > PROG_ID_VERSION)