summaryrefslogtreecommitdiffstatshomepage
path: root/py/map.h
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/map.h
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/map.h')
-rw-r--r--py/map.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/py/map.h b/py/map.h
index ce5505571c..afebfda6ec 100644
--- a/py/map.h
+++ b/py/map.h
@@ -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;