Skip to content

Commit ffbd6e6

Browse files
rtakacsLaszloLango
authored andcommitted
Fix type conversion errors in case of TizenRT. (#2572)
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.uszeged@partner.samsung.com
1 parent d1860d0 commit ffbd6e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

jerry-core/ecma/operations/ecma-function-object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ ecma_op_function_call (ecma_object_t *func_obj_p, /**< Function object */
666666
const ecma_compiled_code_t *bytecode_data_p = ecma_op_function_get_compiled_code (ext_func_p);
667667

668668
#ifndef CONFIG_DISABLE_ES2015_CLASS
669-
bool is_class_constructor = bytecode_data_p->status_flags & CBC_CODE_FLAGS_CONSTRUCTOR;
669+
bool is_class_constructor = (bytecode_data_p->status_flags & CBC_CODE_FLAGS_CONSTRUCTOR) ? true : false;
670670

671671
if (is_class_constructor && !ecma_op_function_has_construct_flag (arguments_list_p))
672672
{

jerry-core/parser/js/js-parser-expr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ parser_parse_class_literal (parser_context_t *context_p) /**< context */
418418
JERRY_ASSERT (context_p->last_cbc_opcode == CBC_PUSH_LITERAL);
419419

420420
cbc_ext_opcode_t opcode;
421-
bool is_static = (status_flags & PARSER_CLASS_STATIC_FUNCTION);
421+
bool is_static = (status_flags & PARSER_CLASS_STATIC_FUNCTION) ? true : false;
422422

423423
if (is_computed)
424424
{
@@ -1281,7 +1281,7 @@ parser_parse_unary_expression (parser_context_t *context_p, /**< context */
12811281
break;
12821282
}
12831283

1284-
bool is_static = context_p->status_flags & PARSER_CLASS_STATIC_FUNCTION;
1284+
bool is_static = (context_p->status_flags & PARSER_CLASS_STATIC_FUNCTION) ? true : false;
12851285
parser_emit_cbc_ext (context_p, is_static ? CBC_EXT_PUSH_STATIC_SUPER : CBC_EXT_PUSH_SUPER);
12861286
break;
12871287
}

jerry-core/parser/js/js-parser-statm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@ parser_parse_statements (parser_context_t *context_p) /**< context */
20552055

20562056
bool return_with_literal = (context_p->last_cbc_opcode == CBC_PUSH_LITERAL);
20572057
#ifndef CONFIG_DISABLE_ES2015_CLASS
2058-
return_with_literal &= !PARSER_IS_CLASS_CONSTRUCTOR_SUPER (context_p->status_flags);
2058+
return_with_literal = return_with_literal && !PARSER_IS_CLASS_CONSTRUCTOR_SUPER (context_p->status_flags);
20592059
#endif /* !CONFIG_DISABLE_ES2015_CLASS */
20602060

20612061
if (return_with_literal)

0 commit comments

Comments
 (0)