Skip to content

Commit

Permalink
objlist: list_reverse(): Fix typesafety error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sokolovsky committed Mar 20, 2015
1 parent d478fc7 commit 69922c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/objlist.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 69922c6

Please sign in to comment.