diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-03-20 23:24:25 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-03-20 23:35:21 +0200 |
commit | 69922c602cea2b54c30b04078f066717b18425d6 (patch) | |
tree | 21eaaab0665f1d0bb60c7d4307a017c765f5cfca /py/objlist.c | |
parent | d478fc75b3414d6672cefd7131cc710f513fd76e (diff) | |
download | micropython-69922c602cea2b54c30b04078f066717b18425d6.tar.gz micropython-69922c602cea2b54c30b04078f066717b18425d6.zip |
objlist: list_reverse(): Fix typesafety error.
Diffstat (limited to 'py/objlist.c')
-rw-r--r-- | py/objlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objlist.c b/py/objlist.c index 03e3dda033..32ec64fa44 100644 --- a/py/objlist.c +++ b/py/objlist.c @@ -405,7 +405,7 @@ STATIC mp_obj_t list_reverse(mp_obj_t self_in) { mp_int_t len = self->len; for (mp_int_t i = 0; i < len/2; i++) { - mp_obj_t *a = self->items[i]; + mp_obj_t a = self->items[i]; self->items[i] = self->items[len-i-1]; self->items[len-i-1] = a; } |