We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8187d84 commit 6042a64Copy full SHA for 6042a64
1 file changed
quickjs/quickjs.c
@@ -567,7 +567,7 @@ typedef enum {
567
} JSClosureTypeEnum;
568
569
typedef struct JSClosureVar {
570
- JSClosureTypeEnum closure_type : 3;
+ uint8_t closure_type : 3; /* JSClosureTypeEnum - explicitly use uint8_t to avoid implementation-defined behavior */
571
uint8_t is_lexical : 1; /* lexical variable */
572
uint8_t is_const : 1; /* const variable (is_lexical = 1 if is_const = 1 */
573
uint8_t var_kind : 4; /* see JSVarKindEnum */
0 commit comments