diff options
Diffstat (limited to 'py/proto.c')
| -rw-r--r-- | py/proto.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/py/proto.c b/py/proto.c index e4da157f0..ad9684f3c 100644 --- a/py/proto.c +++ b/py/proto.c @@ -31,8 +31,10 @@ #ifndef MICROPY_UNSAFE_PROTO const void *mp_proto_get(uint16_t name, mp_const_obj_t obj) { mp_obj_type_t *type = mp_obj_get_type(obj); - if (!type->protocol) return NULL; - uint16_t proto_name = *(const uint16_t*) type->protocol; + if (!type->protocol) { + return NULL; + } + uint16_t proto_name = *(const uint16_t *)type->protocol; if (proto_name == name) { return type->protocol; } |
