diff --git a/py/emitglue.h b/py/emitglue.h
index 43930333d64ac391bcf9b2c1f485e63df2c09060..f2a48c5e51d63e4849e6f8b513bd33cd3ea3e2d5 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 {