We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc424dd commit 7d5f697Copy full SHA for 7d5f697
py/emitglue.h
@@ -63,7 +63,7 @@ typedef const void *mp_proto_fun_t;
63
// is guaranteed to have either its first or second byte non-zero. So if both bytes are
64
// zero then the mp_proto_fun_t pointer must be an mp_raw_code_t.
65
static inline bool mp_proto_fun_is_bytecode(mp_proto_fun_t proto_fun) {
66
- const uint8_t *header = proto_fun;
+ const uint8_t *header = (const uint8_t *)proto_fun;
67
return (header[0] | (header[1] << 8)) != (MP_PROTO_FUN_INDICATOR_RAW_CODE_0 | (MP_PROTO_FUN_INDICATOR_RAW_CODE_1 << 8));
68
}
69
0 commit comments