Issue #14993: Use standard "unsigned char" instead of a unsigned char bitfield

This commit is contained in:
Victor Stinner 2012-06-04 22:52:12 +02:00
parent 05cab75d59
commit d7b7c7472b
3 changed files with 15 additions and 17 deletions

View file

@ -901,12 +901,10 @@ typedef struct {
/* minimum length of the buffer when overallocation is enabled,
see _PyUnicodeWriter_Init() */
Py_ssize_t min_length;
struct {
unsigned char overallocate:1;
/* If readonly is 1, buffer is a shared string (cannot be modified)
and size is set to 0. */
unsigned char readonly:1;
} flags;
unsigned char overallocate;
/* If readonly is 1, buffer is a shared string (cannot be modified)
and size is set to 0. */
unsigned char readonly;
} _PyUnicodeWriter ;
/* Initialize a Unicode writer.