Commit 66c11ec5 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

objtype: Clarify code by consistently using common subexpression.

parent d4bd37a5
...@@ -75,10 +75,10 @@ STATIC int instance_count_native_bases(const mp_obj_type_t *type, const mp_obj_t ...@@ -75,10 +75,10 @@ STATIC int instance_count_native_bases(const mp_obj_type_t *type, const mp_obj_t
continue; continue;
} }
if (is_native_type(bt)) { if (is_native_type(bt)) {
*last_native_base = items[i]; *last_native_base = bt;
count++; count++;
} else { } else {
count += instance_count_native_bases(items[i], last_native_base); count += instance_count_native_bases(bt, last_native_base);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment