Skip to content

Commit ab317a0

Browse files
dlechdpgeorge
authored andcommitted
py/misc: Remove use of bitfield from vstr_t.
Since there is only one flag, we don't need to use a bitfield in vstr_t. Compilers emit extra instructions to access a bitfield, so this should reduce the binary size a small amount. Signed-off-by: David Lechner <[email protected]>
1 parent 92d9118 commit ab317a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/misc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ typedef struct _vstr_t {
179179
size_t alloc;
180180
size_t len;
181181
char *buf;
182-
bool fixed_buf : 1;
182+
bool fixed_buf;
183183
} vstr_t;
184184

185185
// convenience macro to declare a vstr with a fixed size buffer on the stack

0 commit comments

Comments
 (0)