summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-06-27 11:17:13 -0700
committerScott Shawcroft <scott@tannewt.org>2018-07-03 05:45:50 -0700
commit252aacdddf1aae89e3ebe91ca72a3ad666728e37 (patch)
tree060b66f7a4d554f46e34bd29bca41d4f6d1fa688 /py
parent321daa3523a0b1ddc9591e20da969c422fd3b2ae (diff)
Analysis fixes and long lived tweaks.
Diffstat (limited to 'py')
-rwxr-xr-x[-rw-r--r--]py/gc.c0
-rwxr-xr-x[-rw-r--r--]py/gc_long_lived.c2
2 files changed, 1 insertions, 1 deletions
diff --git a/py/gc.c b/py/gc.c
index 2c2354e4c..2c2354e4c 100644..100755
--- a/py/gc.c
+++ b/py/gc.c
diff --git a/py/gc_long_lived.c b/py/gc_long_lived.c
index d34fde5d9..e30b389fa 100644..100755
--- a/py/gc_long_lived.c
+++ b/py/gc_long_lived.c
@@ -121,7 +121,7 @@ mp_obj_t make_obj_long_lived(mp_obj_t obj, uint8_t max_depth){
} else if (MP_OBJ_IS_TYPE(obj, &mp_type_property)) {
mp_obj_property_t *prop = MP_OBJ_TO_PTR(obj);
return MP_OBJ_FROM_PTR(make_property_long_lived(prop, max_depth));
- } else if (MP_OBJ_IS_TYPE(obj, &mp_type_str)) {
+ } else if (MP_OBJ_IS_TYPE(obj, &mp_type_str) || MP_OBJ_IS_TYPE(obj, &mp_type_bytes)) {
mp_obj_str_t *str = MP_OBJ_TO_PTR(obj);
return MP_OBJ_FROM_PTR(make_str_long_lived(str));
} else if (MP_OBJ_IS_TYPE(obj, &mp_type_type)) {