From 550f5853c491396d0faecc3b7be85ecae1a64e81 Mon Sep 17 00:00:00 2001 From: Vonasmic Date: Wed, 3 Apr 2024 10:35:58 +0200 Subject: [PATCH] py/obj.h: Fix wrong order of _mp_obj_type_t struct members --- py/obj.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/obj.h b/py/obj.h index 9f2bb46e41..427e1e1d3d 100644 --- a/py/obj.h +++ b/py/obj.h @@ -612,12 +612,12 @@ struct _mp_obj_type_t { // A type is an object so must start with this entry, which points to mp_type_type. mp_obj_base_t base; - // Flags associated with this type. - uint16_t flags; - // The name of this type, a qstr. uint16_t name; + // Flags associated with this type. + uint16_t flags; + // Slots: For the rest of the fields, the slot index points to the // relevant function in the variable-length "slots" field. Ideally these // would be only 4 bits, but the extra overhead of accessing them adds