mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
py: Take out bitfield entries from their own structure.
Don't need to wrap bitfields in their own struct. Compiler does the correct thing without it.
This commit is contained in:
12
py/runtime.c
12
py/runtime.c
@@ -45,14 +45,10 @@ typedef enum {
|
||||
} mp_code_kind_t;
|
||||
|
||||
typedef struct _mp_code_t {
|
||||
struct {
|
||||
mp_code_kind_t kind : 8;
|
||||
uint scope_flags : 8;
|
||||
};
|
||||
struct {
|
||||
uint n_args : 16;
|
||||
uint n_state : 16;
|
||||
};
|
||||
mp_code_kind_t kind : 8;
|
||||
uint scope_flags : 8;
|
||||
uint n_args : 16;
|
||||
uint n_state : 16;
|
||||
union {
|
||||
struct {
|
||||
byte *code;
|
||||
|
||||
Reference in New Issue
Block a user