diff options
author | Damien George <damien.p.george@gmail.com> | 2017-12-15 10:21:10 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-15 10:21:10 +1100 |
commit | cf8e8c29e72ef4871b9d5ab3de32bdaf429c5dbb (patch) | |
tree | 907814154995261c37117318cb0ac166cbd0b7f7 /py/emitglue.h | |
parent | 448d93a04aff95dd300cf3485eb7e7a74cfdfcbf (diff) |
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.
Diffstat (limited to 'py/emitglue.h')
-rw-r--r-- | py/emitglue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitglue.h b/py/emitglue.h index 43930333d..f2a48c5e5 100644 --- a/py/emitglue.h +++ b/py/emitglue.h @@ -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 { |