From 34063108a6c75bc86b287b12664cdb3beeb5a97d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 19:19:12 +0100 Subject: [PATCH] since unary not doesn't fold these, remove them from immediate_is_true --- parser.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/parser.c b/parser.c index 5113700..c788206 100644 --- a/parser.c +++ b/parser.c @@ -488,10 +488,6 @@ static bool immediate_is_true(lex_ctx ctx, ast_value *v) if (v->constval.vstring && OPTS_FLAG(TRUE_EMPTY_STRINGS)) return true; return !!v->constval.vstring[0]; - case TYPE_ENTITY: - return !!v->constval.ventity; - case TYPE_FIELD: - return !!v->constval.vfield; default: compile_error(ctx, "internal error: immediate_is_true on invalid type"); return !!v->constval.vfunc; -- 2.39.2