From 4996542f02701ba93c28fe9709d9f4a70874912a Mon Sep 17 00:00:00 2001 From: kisbg Date: Fri, 8 Nov 2019 16:10:51 +0100 Subject: [PATCH] Added missing logical operator in js-parser-expr (#3293) This fix is needed to build JerryScript 2.1 on a STM board. JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu --- jerry-core/parser/js/js-parser-expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/parser/js/js-parser-expr.c b/jerry-core/parser/js/js-parser-expr.c index 3032037aa..cd33b591c 100644 --- a/jerry-core/parser/js/js-parser-expr.c +++ b/jerry-core/parser/js/js-parser-expr.c @@ -2154,7 +2154,7 @@ parser_parse_expression (parser_context_t *context_p, /**< context */ * * If this is not done, it is possible to carry the flag over to the next expression. */ - bool has_super_ref = (context_p->status_flags & PARSER_CLASS_SUPER_PROP_REFERENCE); + bool has_super_ref = (context_p->status_flags & PARSER_CLASS_SUPER_PROP_REFERENCE) != 0; context_p->status_flags &= (uint32_t) ~PARSER_CLASS_SUPER_PROP_REFERENCE; #endif