Skip to content

Commit afcf5c8

Browse files
committed
WIP
1 parent 7d74bd6 commit afcf5c8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

quickjs.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,10 @@ struct JSString {
509509
};
510510

511511
typedef struct JSClosureVar {
512-
uint8_t is_local : 1;
513-
uint8_t is_arg : 1;
514-
uint8_t is_const : 1;
515-
uint8_t is_lexical : 1;
512+
bool is_local;
513+
bool is_arg;
514+
bool is_const;
515+
bool is_lexical;
516516
uint8_t var_kind : 4; /* see JSVarKindEnum */
517517
/* 8 bits available */
518518
uint16_t var_idx; /* is_local = true: index to a normal variable of the
@@ -559,10 +559,10 @@ typedef struct JSVarDef {
559559
variable in the same or enclosing lexical scope
560560
*/
561561
int scope_next;
562-
uint8_t is_const : 1;
563-
uint8_t is_lexical : 1;
564-
uint8_t is_captured : 1;
565-
uint8_t is_static_private : 1; /* only used during private class field parsing */
562+
bool is_const;
563+
bool is_lexical;
564+
bool is_captured;
565+
bool is_static_private; /* only used during private class field parsing */
566566
uint8_t var_kind : 4; /* see JSVarKindEnum */
567567
/* only used during compilation: function pool index for lexical
568568
variables with var_kind =

0 commit comments

Comments
 (0)