diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-02-01 16:40:33 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-01 16:40:33 -0800 |
| commit | 3d0757102977bcebadfd530949a84fb224e0cfcb (patch) | |
| tree | 0ebb28f8f6b11f3cc6070b74623c227742e3d858 /py/objtype.c | |
| parent | 12917d323de2b4426c35c039a353d65b9acfad99 (diff) | |
| parent | 5555a24479a2f40d52d008c991f191d3b9b566bf (diff) | |
Merge pull request #1515 from tannewt/fix_long_live
Fix a couple long live issues
Diffstat (limited to 'py/objtype.c')
| -rw-r--r-- | py/objtype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objtype.c b/py/objtype.c index f7fe3b3f6..fec99da1a 100644 --- a/py/objtype.c +++ b/py/objtype.c @@ -1065,7 +1065,7 @@ STATIC void type_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { // store attribute mp_map_elem_t *elem = mp_map_lookup(locals_map, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP_ADD_IF_NOT_FOUND); - elem->value = make_obj_long_lived(dest[1], 10); + elem->value = dest[1]; dest[0] = MP_OBJ_NULL; // indicate success } } |
