summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-26 17:40:52 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-26 17:40:52 +0000
commit510477557d1cd13dc3cfdebf32338aa1b75180cb (patch)
tree3ea84ff43ecf5780cd357c1cd45bb3c51594d21f /py/runtime.c
parent98fb8935bc54085989cb271eb1a75fe2a6214c43 (diff)
downloadmicropython-510477557d1cd13dc3cfdebf32338aa1b75180cb.tar.gz
micropython-510477557d1cd13dc3cfdebf32338aa1b75180cb.zip
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.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 20bfa0b20f..b9caf04570 100644
--- a/py/runtime.c
+++ b/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;