Skip to content

Commit b656ec1

Browse files
author
Ruben Ayrapetyan
committed
Fix type of several flags in jsp_state_t.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
1 parent ae9f6fc commit b656ec1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jerry-core/parser/js/parser.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -645,10 +645,10 @@ typedef struct
645645
uint8_t is_no_in_mode : 1; /**< expression is being parsed in NoIn mode (see also: ECMA-262 v5, 11.8) */
646646
uint8_t is_fixed_ret_operand : 1; /**< the expression's evaluation should produce value that should be
647647
* put to register, specified by operand, specified in state */
648-
int is_value_based_reference; /**< flag, indicating whether current state represents evaluated expression
649-
* that evaluated to a value-based reference */
650-
int is_get_value_dumped_for_main_operand;
651-
int is_get_value_dumped_for_prop_operand;
648+
uint8_t is_value_based_reference : 1; /**< flag, indicating whether current state represents evaluated expression
649+
* that evaluated to a value-based reference */
650+
uint8_t is_get_value_dumped_for_main_operand : 1;
651+
uint8_t is_get_value_dumped_for_prop_operand : 1;
652652
uint8_t is_need_retval : 1; /**< flag, indicating whether result of the expression's
653653
* evaluation, if it is value, is used */
654654
uint8_t is_complex_production : 1; /**< the expression is being parsed in complex production mode */
@@ -837,7 +837,7 @@ typedef struct
837837
static_assert (sizeof (u) == 20, "Please, update size if changed");
838838
} jsp_state_t;
839839

840-
//static_assert (sizeof (jsp_state_t) == 24, "Please, update if size is changed");
840+
static_assert (sizeof (jsp_state_t) == 24, "Please, update if size is changed");
841841

842842
/* FIXME: change to dynamic */
843843
#define JSP_STATE_STACK_MAX 256

0 commit comments

Comments
 (0)