Skip to content
Snippets Groups Projects
Commit cf8e8c29 authored by Damien George's avatar Damien George
Browse files

py/emitglue: Change type of bit-field to explicitly unsigned mp_uint_t.

Some compilers can treat enum types as signed, in which case 3 bits is not
enough to encode all mp_raw_code_kind_t values.  So change the type to
mp_uint_t.
parent 448d93a0
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ typedef enum {
} mp_raw_code_kind_t;
typedef struct _mp_raw_code_t {
mp_raw_code_kind_t kind : 3;
mp_uint_t kind : 3; // of type mp_raw_code_kind_t
mp_uint_t scope_flags : 7;
mp_uint_t n_pos_args : 11;
union {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment