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/misc.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/misc.h')
-rw-r--r-- | py/misc.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -66,10 +66,8 @@ typedef struct _vstr_t { int alloc; int len; char *buf; - struct { - bool had_error : 1; - bool fixed_buf : 1; - }; + bool had_error : 1; + bool fixed_buf : 1; } vstr_t; // convenience macro to declare a vstr with a fixed size buffer on the stack |