summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/objtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objtype.c b/py/objtype.c
index 711572bd4b..46482995d9 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -75,10 +75,10 @@ STATIC int instance_count_native_bases(const mp_obj_type_t *type, const mp_obj_t
continue;
}
if (is_native_type(bt)) {
- *last_native_base = items[i];
+ *last_native_base = bt;
count++;
} else {
- count += instance_count_native_bases(items[i], last_native_base);
+ count += instance_count_native_bases(bt, last_native_base);
}
}