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/map.h | |
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/map.h')
-rw-r--r-- | py/map.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -4,11 +4,9 @@ typedef struct _mp_map_elem_t { } mp_map_elem_t; typedef struct _mp_map_t { - struct { - machine_uint_t all_keys_are_qstrs : 1; - machine_uint_t table_is_fixed_array : 1; - machine_uint_t used : (8 * sizeof(machine_uint_t) - 2); - }; + machine_uint_t all_keys_are_qstrs : 1; + machine_uint_t table_is_fixed_array : 1; + machine_uint_t used : (8 * sizeof(machine_uint_t) - 2); machine_uint_t alloc; mp_map_elem_t *table; } mp_map_t; |