diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-26 17:40:52 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-26 17:40:52 +0000 |
commit | 510477557d1cd13dc3cfdebf32338aa1b75180cb (patch) | |
tree | 3ea84ff43ecf5780cd357c1cd45bb3c51594d21f /py/objarray.c | |
parent | 98fb8935bc54085989cb271eb1a75fe2a6214c43 (diff) | |
download | micropython-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/objarray.c')
-rw-r--r-- | py/objarray.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/py/objarray.c b/py/objarray.c index 9e36196e5b..30a2183115 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -16,12 +16,10 @@ typedef struct _mp_obj_array_t { mp_obj_base_t base; - struct { - machine_uint_t typecode : 8; - // free is number of unused elements after len used elements - // alloc size = len + free - machine_uint_t free : (8 * sizeof(machine_uint_t) - 8); - }; + machine_uint_t typecode : 8; + // free is number of unused elements after len used elements + // alloc size = len + free + machine_uint_t free : (8 * sizeof(machine_uint_t) - 8); machine_uint_t len; // in elements void *items; } mp_obj_array_t; |